:chart_with_upwards_trend: Sample plots (might be out of date).
Generated With Other Modules:
The GracePlot.jl module is a simple control interface for Grace/xmgrace - providing more publication-quality plotting facilities to Julia.
The sample directory contains a few demonstrations on how to use GracePlot.jl.
The template directory contains a repository of sample Grace template (parameter) files.
The GracePlot.jl module requires the user to install the Grace plotting tool:
More detailed instructions can be found here
By default, GracePlot.jl assumes Grace is accessible from the environment path as
xmgrace. To specify a different command/path, simply set the
GRACEPLOT_COMMAND environment variable.
The value of
GRACEPLOT_COMMAND can therefore be set from
.juliarc.jl with the following:
ENV["GRACEPLOT_COMMAND"] = "/home/laforge/bin/xmgrace2"
Objects describing axis types are created with the
log_lin = paxes(xscale = :log, yscale = :lin)
paxes function also allows the user to specify axis ranges:
ax_rng = paxes(xmin = 0.1, xmax = 1000, ymin = 1000, ymax = 5000)
Objects describing line style are created with the
default_line = line(style=:ldash, width=8, color=1)
Objects describing display glyphs (markers/symbols) are created with the
:char (see demo2 for use of
GracePlot.jl currently provides a relatively "bare-bones" interface (despite offering significant functionality).
GracePlot.jl will post-process SVG files in an attempt to support the W3C 1999 standard. The changes enable most new web browsers to display the SVG outputs. Note, however, that text will not appear correctly on these plots.
The EPS format is therefore suggested if high-quality vector plots are desired.
The ARRANGE command appears to cause crashes/logouts on certain Linux installs with relatively high occurance.
Extensive compatibility testing of GracePlot.jl has not been performed. The module has been tested using the following environment(s):
The GracePlot.jl API is not perfect. Backward compatibility issues are to be expected as the module matures.
6 months ago