From: Jaime E. V. <vi...@us...> - 2025-07-04 11:59:06
|
This bug could be solved if instead of trying to reset Gnuplot before any new plot comand we close the pipe to Gnuplot and open a new one. I believe the only advantages that we currently have by using gnuplot_pipes instead of gnuplot is that we don't need any temporary files and the plot window remains active, thus allowing things such as rotating a 3d surface. I don't think using a new pipe everytime will have disadvantages compared to keeping the same pipe opened. If anyone can think of disadvantages please speak; otherwise I will go on and introduce that change. --- **[bugs:#4294] Package draw and plot2d Gnuplot line type interaction** **Status:** open **Group:** None **Labels:** plotting plot2d draw gnuplot **Created:** Mon Apr 22, 2024 11:31 PM UTC by Robert Dodier **Last Updated:** Sun Aug 04, 2024 09:09 PM UTC **Owner:** nobody Working with Git version ff883f3. `gnuplot --version` reports: `gnuplot 5.4 patchlevel 2` I am working on Linux. I noticed an interaction between the draw package and plot2d. First time I try plot2d, I see all solid lines as expected. ``` (%i1) plot2d (makelist (sin(k*x), k, 1, 10), [x, 0, 10]) $ ``` Now I load the draw package and draw something, and then try the same plot2d as before. ``` (%i2) load (draw) $ (%i3) draw2d (rectangle ([0, 0], [10, 1])) $ (%i4) plot2d (makelist (sin(k*x), k, 1, 10), [x, 0, 10]) $ ``` That second plot2d shows that the curves are drawn with a variety of line types, not just a solid line. Some are dashed, some dotted, etc. I'm guessing the state of the Gnuplot process has gotten changed. If I set the plot_format to gnuplot, which executes a separate Gnuplot process instead of talking through a pipe, I see all solid lines as expected. ``` (%i5) plot2d (makelist (sin(k*x), k, 1, 10), [x, 0, 10], [plot_format, gnuplot]) $ ``` --- Sent from sourceforge.net because max...@li... is subscribed to https://sourceforge.net/p/maxima/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |