Khipu/PlayingWithPlotDictionary: Difference between revisions

From KDE Wiki Sandbox
(intitial version of the dictionary documentation)
 
Line 3: Line 3:
<translate>
<translate>
=== What is a Plot Dictionary ?  ===  
=== What is a Plot Dictionary ?  ===  
A plot dictionary is a kind of text file (.plots) which contains a name of a plot along with its equation. The basic idea of dictionary files is to add plots in Khipu without actually typing big equations. User can add the plots based on its name using the dictionaries. We already have some predefined dictionaries which let a user enter some famous plots (i.e. curves and surfaces). User can even download the dictionaries using Internet.
==== Syntax ====  
==== Syntax ====  
A syntax of a dictionary file follows Analitza syntax. Every line in a file will contain a name and the corresponding equation.
For example: A typical dictionary file would have lines as follows:
sinus := x->sin x
plane1 := (x, y, z)->(x+y+z)-1
==== Adding your own dictionary file ====  
==== Adding your own dictionary file ====  
==== Manually editing a existing dictionary file ====
The flexible analitza syntax would allow the user to create his/her own dictionary file ! User needs to save a text file with '''.plots extension''' with correct plot name and equations in each line.
==== Let's have a look at the plots of the Dictionary files ! ====
==== Let's have a look at the plots of the Dictionary files ! ====
If you want to see how Khipu uses dictionary , just '''hit Plot Dictionary tab''' shown on the main toolbar of Khipu. Then,switch to different names in the drop down box tagged by '''collection'''. Click on any of the plot's name and you will see a corresponding plot on the right side of the window.
=== Adding plots from the Dictionary ===
=== Adding plots from the Dictionary ===
=== Import Dictionary File from a local disk ===
=== Import Dictionary File from a local disk ===

Revision as of 16:37, 3 September 2013


What is a Plot Dictionary ?

A plot dictionary is a kind of text file (.plots) which contains a name of a plot along with its equation. The basic idea of dictionary files is to add plots in Khipu without actually typing big equations. User can add the plots based on its name using the dictionaries. We already have some predefined dictionaries which let a user enter some famous plots (i.e. curves and surfaces). User can even download the dictionaries using Internet.

Syntax

A syntax of a dictionary file follows Analitza syntax. Every line in a file will contain a name and the corresponding equation. For example: A typical dictionary file would have lines as follows: sinus := x->sin x plane1 := (x, y, z)->(x+y+z)-1

Adding your own dictionary file

The flexible analitza syntax would allow the user to create his/her own dictionary file ! User needs to save a text file with .plots extension with correct plot name and equations in each line.

Let's have a look at the plots of the Dictionary files !

If you want to see how Khipu uses dictionary , just hit Plot Dictionary tab shown on the main toolbar of Khipu. Then,switch to different names in the drop down box tagged by collection. Click on any of the plot's name and you will see a corresponding plot on the right side of the window.

Adding plots from the Dictionary

Import Dictionary File from a local disk

Download Dictionary File from the Internet

Export a space as a Dictionary