Skip to content
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

Plot: Manually calling Axes.AutoScale() throws exception on empty plots #3805

Closed
swharden opened this issue May 7, 2024 · 2 comments
Closed

Comments

@swharden
Copy link
Member

swharden commented May 7, 2024

I think it's causing an error in another one of my apps but I'm not 100% sure this is the cause. It should be tested.

@KennyTK
Copy link

KennyTK commented May 8, 2024

Are you using one of the overloads of Axes.AutoScale()? I do not experience this with an empty plot in winforms.

graph = new ScottPlot.WinForms.FormsPlot();

graph.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
graph.DisplayScale = 1F;
graph.Location = new Point(3, 3);
graph.Name = "graph";
graph.Size = new Size(595, 264);
graph.TabIndex = 7;
graph.MouseClick += MouseClick;

graph.Plot.Axes.AutoScale();

@swharden
Copy link
Member Author

Are you using one of the overloads of Axes.AutoScale()?

Maybe I was! Unfortunately I can't recreate the issue now either 😅 Thanks for looking into this though! I'll close this issue for now, and we can open it up again if I do a better job creating a code sample that reproduces the issue 👍

@swharden swharden closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants