/[ascend]/trunk/models/plot.a4l
ViewVC logotype

Diff of /trunk/models/plot.a4l

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2060 by jpye, Thu Jun 25 10:27:30 2009 UTC revision 2061 by jpye, Sat Jun 27 15:23:36 2009 UTC
# Line 64  MODEL plt_curve( Line 64  MODEL plt_curve(
64      (* points of matching subscript will be plotted in order of      (* points of matching subscript will be plotted in order of
65          increasing subscript value.          increasing subscript value.
66      *)      *)
67      legend IS_A symbol;      legend "Label for curve (displayed in legend box)"
68      format "colour/linestyle in pylab format, eg 'r-' for red line" IS_A symbol;      , format "colour/linestyle in pylab format, eg 'r-' for red line"
69            IS_A symbol;
70      FOR i IN [npnts] CREATE      FOR i IN [npnts] CREATE
71          pnt[i]  IS_A plt_point(x_data[i],y_data[i]);          pnt[i]  IS_A plt_point(x_data[i],y_data[i]);
72      END FOR;      END FOR;
73  END plt_curve;  END plt_curve;
74    
75    ATOM plt_integer_default_0 REFINES integer
76        DIMENSIONLESS
77        DEFAULT 0;
78    END plt_integer_default_0;
79    
80  MODEL plt_plot_integer(  MODEL plt_plot_integer(
81      curve_set IS_A set OF integer_constant;      curve_set IS_A set OF integer_constant;
82      curve[curve_set] WILL_BE plt_curve;      curve[curve_set] WILL_BE plt_curve;
83  )REFINES pltmodel();  )REFINES pltmodel();
84      title, XLabel, YLabel IS_A symbol;      title "Plot title (shown at top)"
85      Xlow IS_A real;      , XLabel "X-axis label"
86      Ylow IS_A real;      , YLabel "Y-axis label"
87      Xhigh IS_A real;          IS_A symbol;
88      Yhigh IS_A real;      legend_position "Legend position (see http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.legend)"
89      Xlog IS_A boolean_start_false;          IS_A plt_integer_default_0;
90      Ylog IS_A boolean_start_false;      Xlow, Ylow, Xhigh, Yhigh IS_A real;
91        Xlog, Ylog IS_A boolean_start_false;
92  END plt_plot_integer;  END plt_plot_integer;
93    
94    
# Line 90  MODEL plt_plot_symbol( Line 96  MODEL plt_plot_symbol(
96      curve_set IS_A set OF symbol_constant;      curve_set IS_A set OF symbol_constant;
97      curve[curve_set] WILL_BE plt_curve;      curve[curve_set] WILL_BE plt_curve;
98  )REFINES pltmodel();  )REFINES pltmodel();
99      title, XLabel, YLabel IS_A symbol;      title "Plot title (shown at top)"
100      Xlow IS_A real;      , XLabel "X-axis label"
101      Ylow IS_A real;      , YLabel "Y-axis label"
102      Xhigh IS_A real;          IS_A symbol;
103      Yhigh IS_A real;      legend_position "Legend position (see http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.legend)"
104      Xlog IS_A boolean_start_false;          IS_A plt_integer_default_0;
105      Ylog IS_A boolean_start_false;      Xlow, Ylow, Xhigh, Yhigh IS_A real;
106        Xlog, Ylog IS_A boolean_start_false;
107  END plt_plot_symbol;  END plt_plot_symbol;

Legend:
Removed from v.2060  
changed lines
  Added in v.2061

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22