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.

horizontal multiplier gets cut-off when horizontal axis label is not shown

See original GitHub issue

I just tried this library and I’m a bit confused about the automated X axis label generation in this very simple example here:

var testData = new SortedDictionary<double, double>();
testData.Add(0, 1);
testData.Add(6000, 5);
testData.Add(11000, 1);

var plot = new ScottPlot.Plot(600, 400);
plot.PlotScatter(testData.Keys.ToArray(), testData.Values.ToArray());
plot.AxisAuto(0 , 0);
plot.SaveFig("test.png");

The result looks like this test

What’s the reason that the X axis labels got divided by 1000 (although there would be enough space) and what’s this interesting cropped number in the bottom right? 😃

Thanks in advance Andreas

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
swhardencommented, Sep 22, 2019

Is there a parameter then to let it show the full numbers in the axis labels instead of divided by 1000?

plot.Ticks(useOffsetNotation: false, useMultiplierNotation: false);

Cookbook example: https://github.com/swharden/ScottPlot/tree/master/cookbook#multiplier-notation-disabled

There’s a chance those advanced features aren’t in the NuGet package yet, but I’ll release the latest build on NuGet shortly.

Hope this helps! Glad you enjoy ScottPlot =]

0reactions
swhardencommented, Sep 22, 2019

Just published it on NuGet - it should be processed and ready to update within a half hour.

https://www.nuget.org/packages/ScottPlot

Best, Scott

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cut off x-axis label problem in multiple plot in python
I am working on making multiple distribution plots using matplotlib and seaborn ... The thing is x-axis label look cut off like as...
Read more >
Excel Online X-Axis Label (and border) getting cut off
For some charts displayed in Excel Online, the X-Axis/Horizontal Axis is not showing the entire label and additionally the border is getting ......
Read more >
horizontal axis labeling problems
I have tried resizing the graph, but still the horizontal labels will not all appear. I have double-checked and can find nothing different ......
Read more >
Solved: How to prevent scatter plot axis labels from being cut off
Solved: Hi for the attached graph, my axis labels are cut off for the middle and third rows. how do I prevent this?...
Read more >
subplot axes label cut off (activepositionproperty problem?) ...
Hi! I want to make a subplot such that two plots are side by side. The resulting figure needs to be small enough...
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