You are a guest. Restricted access. Read more.
SCaVis manual

Code plugin

We use extended code plugin:

http://www.dokuwiki.org/plugin:code2

It overwrites the default one

Examples:

<source http://jwork.org/scavis/examples/DataPoints/images/p1d_average.py python | p1d_average.py >

Here you do not specify the location as it points by definition to http://jwork.org/scavis/wikidoc/examples/

<code python 1|t p1d_average.py> extern> p1d_average.py </code>

Makes:

Unable to display file "http://jwork.org/scavis/examples/DataPoints/images/p1d_average.py": It may not exist, or permission may be denied.

Code example

  Download for this example is disabled for non-members
 1: # DataPoints. Using P1D data holder. Data manipulations
 2: # Note: get weighted average
 3:
 4: from java.awt import Color,Font
 5: from java.util import Random
 6: from jhplot  import HPlot,P1D
 7: from math  import sqrt;
 8:
 9: c1 = HPlot("Canvas",600,400,2, 1)
10: c1.visible(1)
11: c1.setAutoRange()
12:
13: # keep 2 sets of the data
14: data=[];
15:
16: c1.setGTitle("Average of experimental data", Color.blue) #put title
17: c1.viewHisto(0) # make sure starts from 0
18:
19: # fill first data set
20: p1= P1D("data1")
21: p1.add(10,100,5,5)
22: p1.add(20,50,5,5)
23: p1.add(30,80,5,5)
24: c1.draw(p1)
25:
26:
27: # fill second data set
28: p2= P1D("data2")
29: p2.add(10,40,5,5)
30: p2.add(20,40,5,5)
31: p2.add(30,40,5,5)
32: data.append(p2)
33: c1.draw(p2)
34:
35:
36: # fill 3rd data set
37: p3= P1D("data3")
38: p3.add(10,50,5,5)
39: p3.add(20,45,5,5)
40: p3.add(30,20,5,5)
41: data.append(p3)
42: c1.draw(p3)
43:
44: # add p2,p3 to p1 using weighted average
45: p4=p1.addAndAverage(data)
46: p4.setTitle("Weighted Average")
47: p4.setColor(Color.blue)
48:
49:
50: # show points with statistical errors in  y
51: c1.cd(2,1)
52: c1.setAutoRange()
53: c1.draw(p4)

How to show mathematical equations

General rules are discussed here http://wiki.aqsis.org/dokuwiki/syntax Below are additional rule for this documentations.

Mathematical style

This is based on http://www.dokuwiki.org/plugin:math2

Use the math2 styles. Some rules are shown here math_rules

<m>S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}</m>
<m 8>delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }</m>
<m 14>delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3</m>

which are shown as:

<m>S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}</m>

<m 8>delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }</m>

<m 14>delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} ⇐ epsilon/3</m>

The preferred size is “14”

LaTeX style

This is a style which is identical to LaTeX, only backslash is replaced by “#”. This is done as DokuWiki does not like backslash. This is done in the file “wikidoc/lib/plugins/mathmulti/syntax.php” (see the line with “Chekanov”).

<math>F_{s} = 2*4*#frac{x+y}{#sin(x)}</math>

Which shows:

<math>F_{s} = 2*4*#frac{x+y}{#sin(x)}</math>

The program requires http://www.dokuwiki.org/plugin:math. and modified by S.Chekanov. CGI program is located in cgi-bin.

Protecting parts of the text

Use this style:

<ifauth !@member>
<note important>
Unregistered users have a limited access to this section.
You can unlock advanced pages after  becoming [[http://jwork.org/scavis/members/selock| a full member]].
</note>
</ifauth>

<ifauth @member,@admin,@editor>
Read this protected area
</ifauth>

This protects part of your text as shown below:

Unregistered users have a limited access to this section. You can unlock advanced pages after becoming a full member.

Making a reference

This example shows how to make references. More details can be found http://www.dokuwiki.org/plugin:refnotes:syntax

This is a sentence with a reference 1).

This is a sentence with a reference [(My first reference)].
~~REFNOTES~~

1) My first reference

Hiden text

Description

If you ever wonder “should I add this detail since it may be very interesting to some readers, or shouldn't I since it would complicate a first reading?”, then you may be interested in this plugin. Indeed, you'll just have to write

<hidden click here if you want to know more>Since you want to know more, here is an explanation with more details […]</hidden>

click here if you want to know more

click here if you want to know more

click here if you want to know more

Since you want to know more, here is an explanation with more details […]

and the complicated explanation won't clutter up the page, but will still be readable.

admin/editing_rules.txt · Last modified: 2013/05/31 16:11 (external edit)
CC Attribution-Share Alike 3.0 Unported
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5