Khipu/PlayingWithPlotDictionary

From KDE Wiki Sandbox


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