MatchAxis(vertical: false) produces unexpected output
See original GitHub issueThanks for a great project, I’m just starting to use it.
I’m using MultiPlot
(in lieu of QuickPlot’s secondY: true
) and want to have similar X-axis (dates), but let the Y-axis represent different data, with different scale.
I’m use ‘Cookbook.Figure_73_Multiplot()’ to reproduce and illustrate here.
If I add vertical:false
, like this
plt.subplots[2].MatchAxis(plt.subplots[3], vertical:false);
Then the X-axis adapts to the source plot’s X-axis, but the Y-axis is left empty.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
MatchLayout() fails if the source plot was not previously ...
Matching the axes before the first render produces this unexpected behavior. The quick fix is to do something like: plotter.Render(); volume ...
Read more >imageio/imageio/plugins/_tifffile.py at master
Python library for reading and writing image data. Contribute to imageio/imageio development by creating an account on GitHub.
Read more >Pyro Solver geometry node
Sets the Collision Type to SDF + Volume Velocity and creates the necessary nodes to convert the geometries on the second input to...
Read more >Compiler errors
Number of p card points does not match axis def ... Wrong number of numbers or illegal range in val field ... Too...
Read more >Vellum Solver geometry node
The Vellum Solver is a wrapper around a DOP network to simplify the running of Vellum solves. Like most Vellum SOPs, it is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like that did the trick! a4d5df2c4e2c867078179849313ad28148b3ddd0
I’ll publish this on NuGet then close this issue. Thanks again for both of your help!
@StendProg this is an interesting suggestion! Instead of adding multiple arguments to
AxisAuto()
, wouldAutoAxisX()
andAutoAxisY()
be simpler?Also, I don’t have your email address so I’ll mention a couple topics here I thought you’d find interesting. If you have questions you are welcome to email me (swharden@gmail.com) or we can continue to converse here.
I’m working to fully replace the ScottPlot axis management system with a new system which will make it easier for two plots to share axes in real time (panning one pans the other) and also allow the addition of a second vertical axis. The change should be invisible to existing users and produce no change in output (strict tests will confirm this).
I’m experimenting with creating a
ScottPlot.Drawing
namespace which contains classes liketext
,line
,rectangle
,circle
, etc… The goal is to remove allSystem.Drawing
calls out of ScottPlot, and have theScottPlot.Plot
object just create a collection of drawing objects in memory but not actually render a bitmap. I can then render plots with different drawing systems, such asRenderWithGDI(bmp, plt)
orRenderWithSkia(canvas, plt)
. I’d really like to be able to benefit from Skia/OpengGL, and adding support to ScottPlot (rather than developing QuickPlot) is probably the best solution.Thank you for your encouragement on both of these topics! -Scott