You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was attempting to plot two scatter plots in one figure. I am trying to use the "class interface" which doesn't rely on global data in order to be more in-line with the rest of the code and potentially thread in the future.
According to how I understand some examples, this should work:
However, if I do it like this, the second axes (plot) will always replace the first and only one plot is drawn. If I insert this (which as I understand is meant to be for global data interface):
It works. Am I misusing this? Because I was under the impression hold() is only needed for global data interface and add_axes() is pretty clear in it's meaning to add an axes, right?
Steps to Reproduce
Try above code sample.
Output
One scatter plot without hold(), two scatter plots with hold().
Platform
cross-platform issue - linux
cross-platform issue - windows
cross-platform issue - macos
Environment Details:
OS: Win 10
OS Version:
Compiler: MSVC143
Compiler version:
Additional context
Latest gnuplot installed, matplot++ built from sources with JPEG dependency but without anything else.
The text was updated successfully, but these errors were encountered:
Bug category
Describe the bug
I was attempting to plot two scatter plots in one figure. I am trying to use the "class interface" which doesn't rely on global data in order to be more in-line with the rest of the code and potentially thread in the future.
According to how I understand some examples, this should work:
However, if I do it like this, the second axes (plot) will always replace the first and only one plot is drawn. If I insert this (which as I understand is meant to be for global data interface):
It works. Am I misusing this? Because I was under the impression hold() is only needed for global data interface and add_axes() is pretty clear in it's meaning to add an axes, right?
Steps to Reproduce
Try above code sample.
Output
One scatter plot without hold(), two scatter plots with hold().
Platform
Environment Details:
Additional context
Latest gnuplot installed, matplot++ built from sources with JPEG dependency but without anything else.
The text was updated successfully, but these errors were encountered: