Difference between revisions of "Activities/Plot"

From Sugar Labs
Jump to navigation Jump to search
(Added more info for adding functions to plot.)
Line 1: Line 1:
 
<noinclude>{{TOCright}}
 
<noinclude>{{TOCright}}
[[Category:Activities|Turtle Art]]</noinclude>
+
[[Category:Activities|Plot]]</noinclude>
  
 
[[Image:Activity-plot.svg‎]]
 
[[Image:Activity-plot.svg‎]]
Line 9: Line 9:
  
 
== Modifying Plot ==
 
== Modifying Plot ==
 +
For the ambitious, who don't mind programming:
 +
 
=== Adding a function ===
 
=== Adding a function ===
 
1. Add to plotter/parse.py
 
1. Add to plotter/parse.py
2. Create icon.
+
 
 +
==== Create an icon ====
 +
[[Image:Plot-modify-createicon.png‎]]
 +
 
 +
Create an icon for the new function. As a convention, its name should be the same as the function name in all lowercase letters. There should be two files: one for the working copy, and an exported "Plain SVG" copy. There names should be <functionname>.svg for the plain svg and <functionname>-inkscape.svg for the working copy.
 +
 
 
3. Create node class.
 
3. Create node class.
 
4. Add to node list.
 
4. Add to node list.

Revision as of 00:09, 7 April 2010

Activity-plot.svg

Overview

Plot is an activity that plots mathematical functions.

Modifying Plot

For the ambitious, who don't mind programming:

Adding a function

1. Add to plotter/parse.py

Create an icon

Plot-modify-createicon.png

Create an icon for the new function. As a convention, its name should be the same as the function name in all lowercase letters. There should be two files: one for the working copy, and an exported "Plain SVG" copy. There names should be <functionname>.svg for the plain svg and <functionname>-inkscape.svg for the working copy.

3. Create node class. 4. Add to node list.

Resources