# Plotting Problem

7 messages
Open this post in threaded view
|

## Plotting Problem

 GNU Octave, version 4.3.0+ Up-to-date with hg  as of today. I found this following a matlab application octave:6> size(f) ans =     131073        1 octave:9> plot(f) error: set: "cameratarget" must be finite error: called from      delete at line 60 column 5      newplot at line 202 column 11      plot at line 222 column 9           line 2: x range must be greater than 0 for log scale octave:10> plot([1:131073]) error: set: "cameratarget" must be finite error: called from      delete at line 60 column 5      newplot at line 202 column 11      plot at line 222 column 9           line 6: x range must be greater than 0 for log scale Is this a known problem? Tom Dean _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave
Open this post in threaded view
|

## Re: Plotting Problem

 On Sat, Aug 26, 2017 at 4:03 PM, Thomas D. Dean wrote:GNU Octave, version 4.3.0+ Up-to-date with hg  as of today. I found this following a matlab application octave:6> size(f) ans =    131073        1 octave:9> plot(f) error: set: "cameratarget" must be finite error: called from     delete at line 60 column 5     newplot at line 202 column 11     plot at line 222 column 9          line 2: x range must be greater than 0 for log scale octave:10> plot([1:131073]) error: set: "cameratarget" must be finite error: called from     delete at line 60 column 5     newplot at line 202 column 11     plot at line 222 column 9          line 6: x range must be greater than 0 for log scale Is this a known problem?​Works for me.​9c97909a6c94 tip @​tried all 3 graphics backends.​​It is probably something you did before the plot().Do you get the same error if you just do ​ plot([1:131073]) in a freshly restarted octave?  Tom Dean ​Dmitri.-- ​ _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave
Open this post in threaded view
|

## Re: Plotting Problem

Open this post in threaded view
|

## Re: Plotting Problem

 On Sat, Aug 26, 2017 at 6:43 PM, Thomas D. Dean wrote: octave:27> loglog(f,Pxx); warning: axis: omitting non-positive data in log plot warning: called from     __line__ at line 120 column 16     line at line 56 column 8     __plt__>__plt2vv__ at line 502 column 10     __plt__>__plt2__ at line 248 column 14     __plt__ at line 113 column 17     loglog at line 60 column 10 ​This warning is benign -- it's a long-stanging buglet in signal package (which I thought was fixed some time ago, but apparently reappears again): the spectral power ​must be positive, but due to finite numerical precision one could get it negative.​I can reproduce ​error: set: "cameratarget" must be finite​(which is serious)but I have not figure out where it is coming from. ​​Perhaps you should file a bug report.​​Dmitri.​-- _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave
Open this post in threaded view
|

## Re: Plotting Problem

 On Sat, Aug 26, 2017 at 7:35 PM, Dmitri A. Sergatskov wrote:On Sat, Aug 26, 2017 at 6:43 PM, Thomas D. Dean wrote: octave:27> loglog(f,Pxx); warning: axis: omitting non-positive data in log plot warning: called from     __line__ at line 120 column 16     line at line 56 column 8     __plt__>__plt2vv__ at line 502 column 10     __plt__>__plt2__ at line 248 column 14     __plt__ at line 113 column 17     loglog at line 60 column 10 ​This warning is benign -- it's a long-stanging buglet in signal package (which I thought was fixed some time ago, but apparently reappears again): the spectral power ​must be positive, but due to finite numerical precision one could get it negative.​So I was wrong -- the problem is that f starts at 0 and you cannot plot that in loglog ​plot.The loglog() function is trying to do something clever about it, but that messes up some plot properties. You can get rid of this problem for now by setting f(1) to some small value (<< f(2)).​Dmitri.-- ​ _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave