Gnuplot tips: Difference between revisions

Jump to navigation Jump to search
39 bytes added ,  13 June 2019
Fix markup. Move up to Category:Tutorials
No edit summary
(Fix markup. Move up to Category:Tutorials)
Line 1: Line 1:
When using the X11 server's default settings, Gnuplot's X11 terminal does not support different linestyles.  Thus, all line plots have solid line types, independent of the "linestyle" specified.
When using the X11 server's default settings, Gnuplot's X11 terminal does not support different linestyles.  Thus, all line plots have solid line types, independent of the <code>"linestyle"</code> specified.
To enable support for the various linestyles, add the lines below to your {{Codeline|~/.Xdefaults}}.
To enable support for the various linestyles, add the lines below to your {{Path|~/.Xdefaults}}.


<code>
<syntaxhighlight>
  ! gnuplot settings
  ! gnuplot settings
  gnuplot*dashed: on
  gnuplot*dashed: on
Line 15: Line 15:
  gnuplot*line7Dashes:  42
  gnuplot*line7Dashes:  42
  gnuplot*line8Dashes:  13
  gnuplot*line8Dashes:  13
</code>
</syntaxhighlight>


To enable these settings, type the following command at the shell prompt.
To enable these settings, type the following command at the shell prompt.


<code>
<syntaxhighlight>
  xrdb -merge .Xdefaults
  xrdb -merge .Xdefaults
</code>
</syntaxhighlight>


To avoid having to type this command repeatedly, the command may be placed in your shell script resource file, {{Codeline|~/.profile}} for example.
To avoid having to type this command repeatedly, the command may be placed in your shell script resource file {{Path|~/.profile}} for example.


[[Category:Plotting tutorials]]
[[Category:Tutorials]]

Navigation menu