question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MatchAxis(vertical: false) produces unexpected output

See original GitHub issue

Thanks 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. keep_multiplot

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
swhardencommented, Jan 24, 2020

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!

image

0reactions
swhardencommented, Jan 25, 2020

Possible improvement of library: AutoAxis() must check each axis manual setup separate, and rescale axis with no manual setup (Y  in this issue example).

@StendProg this is an interesting suggestion! Instead of adding multiple arguments to AxisAuto(), would AutoAxisX() and AutoAxisY() 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 like text, line, rectangle, circle, etc… The goal is to remove all System.Drawing calls out of ScottPlot, and have the ScottPlot.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 as RenderWithGDI(bmp, plt) or RenderWithSkia(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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found