Go to GNUPLTXY page

 

Download Data File

 

Download Example Program File

 

 

* (0,0) Data

 

$setglobal gp_title   'Figure 1: All defaults - no ending (0,0)'

$libinclude gnupltxy example price quantity fig1

 

 

$setglobal gp_supzero 'yes'

$setglobal gp_title   'Figure 2: All (0,0) suppressed'

$libinclude gnupltxy example price quantity fig2

 

 

$setglobal gp_zeroend 'yes'

$setglobal gp_supzero 'no'

$setglobal gp_title   'Figure 3: All (0,0) displayed'

$libinclude gnupltxy example price quantity fig3

$setglobal gp_zeroend 'no'

 

 

* Grid

 

$setglobal gp_grid    'no'

$setglobal gp_zeroax  'yes'

$setglobal gp_title   'Figure 4: No global grid, lines at x,y =0'

$libinclude gnupltxy example price quantity fig4

$setglobal gp_zeroax  'no'

 

 

$setglobal gp_xgrid 'yes'

$setglobal gp_ygrid 'no'

$setglobal gp_title 'Figure 5: X-grid only'

$libinclude gnupltxy example price quantity fig5

 

 

$setglobal gp_xgrid 'no'

$setglobal gp_ygrid 'yes'

$setglobal gp_title 'Figure 6: Y-grid only'

$libinclude gnupltxy example price quantity fig6

$setglobal gp_grid  'no'

$setglobal gp_ygrid 'no'

 

 

* Ranges for axis

 

$setglobal gp_xrange '-5 : 10'

$setglobal gp_yrange '-10: 20'

$setglobal gp_title 'Figure 7: User specified x,y-axis range'

$libinclude gnupltxy example price quantity fig7

$setglobal gp_xrange 'no'

$setglobal gp_yrange 'no'

 

 

* Key location, linestyle, color

 

$setglobal gp_key   'bottom right'

$setglobal gp_title 'Figure 8: Key location at bottom right'

$libinclude gnupltxy example price quantity fig8

 

 

$setglobal gp_key   'outside'

$setglobal gp_title 'Figure 9: Key outside'

$libinclude gnupltxy example price quantity fig9

 

 

$setglobal gp_key   '4,0.5'

$setglobal gp_title 'Figure 9-1: Key at x=4,y=0.5'

$libinclude gnupltxy example price quantity fig91

$setglobal gp_key   'bottom right'

 

$setglobal gp_key   'no'

$setglobal gp_style 'linespoints'

$setglobal gp_color 'monochrome'

$setglobal gp_title 'Figure 10: Monochrome, no key, linespoints'

$libinclude gnupltxy example price quantity fig10

 

 

$setglobal gp_key   'yes'

$setglobal gp_style 'points'

$setglobal gp_color 'color'

$setglobal gp_title 'Figure 11: Points'

$libinclude gnupltxy example price quantity fig11

$setglobal gp_style no

 

 

* Font type and font size

 

$setglobal gp_font    'Arial Bold Italic'

$setglobal gp_fntsize '14'

$setglobal gp_title 'Figure 12: Arial Bold Italic Size 14'

$libinclude gnupltxy example price quantity fig12

$setglobal gp_font    'no'

$setglobal gp_fntsize 'no'

 

$setglobal gp_font    'Times New Roman'

$setglobal gp_fntsize '12'

$setglobal gp_title 'Figure 13: Times New Roman Size 12'

$libinclude gnupltxy example price quantity fig13

$setglobal gp_font    'no'

$setglobal gp_fntsize 'no'

 

 

* Border dimensions

 

$setglobal gp_color   'monochrome'

$setglobal gp_borddim 'two'

$setglobal gp_title   'Figure 14: Monochrome with X1 and Y1 border'

$libinclude gnupltxy example price quantity fig14

 

 

$setglobal gp_color   'color'

$setglobal gp_borddim '5'

$setglobal gp_title   'Figure 15: X1 and X2 border'

$libinclude gnupltxy example price quantity fig15

 

 

* Boxes and Boxwidth

 

$setglobal gp_borddim  'all'

$setglobal gp_title    'Figure 16: Boxes and Boxwidth'

$setglobal gp_style    'boxes'

$setglobal gp_boxwid   '.2'

$libinclude gnupltxy example price quantity fig16

 

 

* Steps

 

$setglobal gp_title    'Figure 17: Steps'

$setglobal gp_style    'steps'

$libinclude gnupltxy example price quantity fig17

 

 

* Second X,Y axis

 

$setglobal gp_title    'Figure 18: X2 and Y2 axis autoscaled by 3 and 10 respectively'

$setglobal gp_style    'lines'

$setglobal gp_y2label  '2nd Y-axis'

$setglobal gp_x2label  '2nd X-axis'

$setglobal gp_y2scale  '3'

$setglobal gp_x2scale  '10'

$libinclude gnupltxy example price quantity fig18

 

 

 

$setglobal gp_title    'Figure 18-1: lines 1, 2, and 3 assigned to X1Y1, X1Y2, and X2Y2 respectively'

$setglobal gp_l1axes   'x1y1'

$setglobal gp_l2axes   'x1y2'

$setglobal gp_l3axes   'x2y2'

$libinclude gnupltxy example price quantity fig181

$setglobal gp_l1axes   'x1y1'

$setglobal gp_l2axes   'x1y1'

$setglobal gp_l3axes   'x1y1'

 

 

 

$setglobal gp_title    'Figure 19: 2nd Y-axis assigned a range from -2 to 6 and to Line1'

$setglobal gp_x2axis   'no'

$setglobal gp_y2range  '-2:6'

$setglobal gp_l2axes   'x1y2'

$libinclude gnupltxy example price quantity fig19

$setglobal gp_y2axis   'no'

$setglobal gp_l2axes   'x1y1'

 

 

* Different line width for graphs

 

$setglobal gp_title    'Figure 20: Lines five times thicker than normal'

$setglobal gp_lwidth   '5'

$libinclude gnupltxy example price quantity fig20

$setglobal gp_lwidth   '0'

 

 

* Different line styles (works for lines 1 to 16)

$setglobal gp_title   'Figure 21: Use different line styles for lines 1 and 3'

$setglobal gp_l1style   'steps'

$setglobal gp_l3style   'points'

$libinclude gnupltxy example price quantity fig21

 

 

$setglobal gp_title    'Figure 22: Change tic increments'

$setglobal gp_xinc     '2.5'

$setglobal gp_yinc     '0.8'

$libinclude gnupltxy example price quantity fig22

$setglobal gp_xinc     '0'

$setglobal gp_yinc     '0'

 

 

$setglobal gp_title    'Figure 23: Filled Curves'

$setglobal gp_style    'filledcurves'

$libinclude gnupltxy example price quantity fig23

 

 

$setglobal gp_title    'Figure 24: Filled Curves'

$setglobal gp_style    'lines'

$setglobal gp_l1style  'filledcurves'

$libinclude gnupltxy example price quantity fig24