-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
24.05.0 Can't Plot Vectors With wxdraw3d() #1949
Comments
I looked at this some time ago and was not able to reproduce, now again - it seems to work here without problems. wxMaxima 24.05.0, wxMaxima current development version, Gnuplot 5.2, Gnuplot 6.0, etc. Can you give more details? Gnuplot version, Maxima version, maybe an error on the console (perhaps from gnuplot), if you start wxMaxima from the console, etc.? Does it work with the recent release or perhaps the current git version of wxMaxima? |
I may have found the source of the problem. See below. I went through the motions again: Start wxmaxima (24.05.0) load(draw)$ Output: Message from maxima's stderr stream: "/tmp/maxout_15238_1.gnuplot" line 38: All edges undefined or out of range, thus no plot. Gnuplot version 6.0.1 File output, maxout_15238_1.gnuplot: set terminal pngcairo dashed enhanced truecolor size 800, 800 set pm3d at s depthorder explicit File output, maxout_15238_2.data: 0.0 0.0 0.0 1.0 1.0 1.0 Note that the data is separated by spaces. My .gnuplot config set datafile separator whitespace Possibly, wxmaxima or maxima or gnuplot is setting the datafile But this does not explain why if I preceed the vector object with another |
Really strange. The 5th line of |
Hm. Do you use the same Maxima & Gnuplot in both cases? Maybe a self compiled version in one case and the Maxima (and/or Gnuplot) included in the distribution in the second case? Last idea: There is a file And finally: Does the current release (or current Git development version) work? |
It appears to be a gnuplot issue. I noticed that if I remove my ~/.gnuplot config file, the following wxmaxima commands execute without error: load(draw)$ Then I went through the ~/.gnuplot file line by line until I found the problem: set hidden3d If I remove this line from ~/.gnuplot then there is no error with wxmaxima. The same result happens if I execute the wxmaxima output files directly within gnuplot. Maybe this issue should be reported to gnuplot? |
Thanks for the feedback. So that is not a wxMaxima issue, I am closing this bug report. |
Entering the following commands into 24.05.0 causes gnuplot error:
load(draw)$
wxdraw3d(vector([0,0,0],[1,1,1]))$
Message from maxima's stderr stream: "/tmp/maxout_656_13.gnuplot" line 38: All edges undefined or out of range, thus no plot.
Entering the equivalent commands into Maxima results in normal plot with no error:
load(draw)$
draw3d(vector([0,0,0],[1,1,1]))$
[Normal Plot]
However, in wxMaxima, if I preceed the vector() object with another object then the plot is normal without error:
wxdraw3d(points([[1/10,1/10,1/10], [1/2,1/2,1/2]]),vector([0,0,0],[1,1,1]))$
[Normal Plot]
In this case I am using the "points()" object but any other object is also sufficient.
Also, in wxMaxima, using "draw3d()" in place of "wxdraw3d()" cuases a normal vector plot but the plot is not in-line but rather appears in an external window.
The text was updated successfully, but these errors were encountered: