help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing on Windows


From: Ron.Simonson
Subject: Re: Printing on Windows
Date: Tue, 6 Aug 2013 16:39:11 -0700
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.6esrpre) Gecko/20120713 Thunderbird/10.0.6

On 08/06/2013 12:06 PM, biogas-1 wrote:
I get great plots using the Windows version of Octave, but when I try to
print them, the data which is outside the limits defined by axis() appear,
and the plot looks very shoddy.

I know this is probably a gnuplot problem, but does anyone know how to
control this?  This would be most awesome help.
Thank you!

<http://octave.1599824.n4.nabble.com/file/n4656434/junk.png>


Another option could be:

\begin{octave_plot}
  indata = load("mydata.dat");

  xmin = min(indata(:,1));
  xmax = max(indata(:,1));
  ymin = min(indata(:,2));
  ymax = max(indata(:,2));

  plot(indata(:,1),indata(:,2);
  xlabel("abscissa");
  ylabel("ordinate");
  title("My Title");
  grid("on");
  grid("minor","on");
  axis([xmin xmax ymin ymax]);
\end{octave_plot}

You can add padding to xmin ... ymax as desired.

Talk to you later.  Ron.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]