[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38961] print freezes when printing certain fp
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #38961] print freezes when printing certain fplots |
Date: |
Fri, 10 May 2013 17:58:39 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 |
Update of bug #38961 (project octave):
Status: None => Need Info
_______________________________________________________
Follow-up Comment #1:
Confirmed, but no I don't think it's a bug. The third argument to fplot gives
you control over how many points or how accurate the plot should be made. Your
second plot is slow because of the particular function you are evaluating and
the default tolerance of fplot, not simply because something was changed. If
you limit the plot to a fixed number of points you should see no change in
speed.
octave:1> fplot ("x^2*sin(x)+1", [-2, 2]);
octave:2> size (get (get (gca, "children"), "xdata"))
ans =
1 1793
octave:3> fplot ("x^2*sin(x)+0", [-2, 2]);
octave:4> size (get (get (gca, "children"), "xdata"))
ans =
1 1835009
octave:5> fplot ("x^2*sin(x)+1", [-2, 2], 2000), tic, print(1,
"a.png","-dpng"), toc
Elapsed time is 0.56231612 seconds.
octave:6> fplot ("x^2*sin(x)+0", [-2, 2], 2000), tic, print(1,
"a.png","-dpng"), toc
Elapsed time is 0.53061102 seconds.
Does that address the problem?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38961>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/