@@ -33,7 +33,7 @@ def generate_plots():
3333 g1 = gp .gnuplotlib (title = 'Parabola with error bars' ,
3434 _with = 'xyerrorbars' ,
3535 hardcopy = 'parabola-with-x-y-errobars-pops-up-in-a-new-window.svg' )
36- g1 .plot ( x ** 2 * 10 , np .abs (x )/ 10 , np .abs (x )* 5 ,
36+ g1 .plot ( x ** 2 * 10 , np .abs (x )/ 10 , np .abs (x )* 25 ,
3737 legend = 'Parabola' ,
3838 tuplesize = 4 )
3939
@@ -42,6 +42,7 @@ def generate_plots():
4242 title = 'Heat map' ,
4343 unset = 'grid' ,
4444 cmds = 'set view map' ,
45+ square = True ,
4546 _with = 'image' ,
4647 tuplesize = 3 ,
4748 hardcopy = 'Heat-map-pops-up-where-first-parabola-used-to-be.svg' )
@@ -55,17 +56,26 @@ def generate_plots():
5556 z )
5657
5758 x = np .arange (1000 )
58- gp .plot ( (x * x , dict (histogram = 1 ,
59- binwidth = 10000 )),
60- (x * x , dict (histogram = 'cumulative' , y2 = 1 )),
59+ gp .plot ( (x * x , dict (histogram = True ,
60+ binwidth = 20000 ,
61+ legend = 'Frequency' )),
62+ (x * x , dict (histogram = 'cumulative' ,
63+ legend = 'Cumulative' ,
64+ y2 = True )),
65+ ylabel = 'Histogram frequency' ,
66+ y2label = 'Cumulative sum' ,
67+ _set = 'key opaque' ,
6168 hardcopy = 'A-density-and-cumulative-histogram-of-x-2-are-plotted-on-the-same-plot.svg' )
6269
63- gp .plot ( (x * x , dict (histogram = 1 ,
64- binwidth = 10000 )),
65- (x * x , dict (histogram = 'cumulative' )),
70+ gp .plot ( (x * x , dict (histogram = True ,
71+ binwidth = 20000 ,
72+ legend = 'Frequency' )),
73+ (x * x , dict (histogram = 'cumulative' ,
74+ legend = 'Cumulative' )),
6675 _xmin = 0 , _xmax = 1e6 ,
6776 multiplot = 'title "multiplot histograms" layout 2,1' ,
68- _set = 'lmargin at screen 0.05' ,
77+ _set = ('lmargin at screen 0.05' ,
78+ 'key opaque' ),
6979 hardcopy = 'Same-histograms-but-plotted-on-two-separate-plots.svg' )
7080
7181
0 commit comments