You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's done using the set_x_axis method. It doesn't show up in the documentation search due to a Rust bug: rust-lang/rust#11943.
Here's an example:
#![feature(globs)]externcrate gnuplot;use gnuplot::*;fnmain(){letmut fg = Figure::new();let x = [-1i,1];let y = [-3i,4];
fg.axes2d().lines(x.iter(), y.iter(),[Caption("A line"),Color("black")]).set_x_axis(true,[]).set_y_axis(true,[])// Turn off the borders and move the ticks to the axes.set_x_ticks(Some((Auto,0)),[OnAxis(true)],[]).set_y_ticks(Some((Auto,0)),[OnAxis(true)],[]).set_border(true,[],[]);
fg.show();}
RustGnuplot is unable to display the zero axis on gnuplot. The gnuplot commands are
set xzeroaxis
andset yzeroaxis
, given here.The text was updated successfully, but these errors were encountered: