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 know it from the usual tools like excel or google spreadsheets, that you can have X-labels that are printed at an angle, so there can be more lables on less space:
Couldnt find a way to do this with ScottPlot. Can you add it?
Thanks for the suggestion @SeidChr! This would be a great improvement, especially for date ticks.
A small gotcha would be that the layout-detecting code currently uses tick label height to determine how much space to allocate for the lower ticks, but once we get ticks rendering at an angle I can adjust the layout code to accomodate it.
Would you be interested in giving this a try? Horizontal ticks are rendered in this code block. I'd suggest starting by hard-coding a 45º angle, then later worrying about how to let the user select this.
Activity
swharden commentedon Mar 14, 2020
Thanks for the suggestion @SeidChr! This would be a great improvement, especially for date ticks.
A small gotcha would be that the layout-detecting code currently uses tick label height to determine how much space to allocate for the lower ticks, but once we get ticks rendering at an angle I can adjust the layout code to accomodate it.
Would you be interested in giving this a try? Horizontal ticks are rendered in this code block. I'd suggest starting by hard-coding a 45º angle, then later worrying about how to let the user select this.
https://github.com/swharden/ScottPlot/blob/69ede7b1e6cdb80eaea81567e617db599b9868c1/src/ScottPlot/Renderer.cs#L273-L274
swharden commentedon Mar 15, 2020
I'll tackle this now. I can get code hints from the solution of #160:
pltTest.Ticks(xTickRotation: 45) #300
update cookbook for rotated ticks #300
swharden commentedon Mar 15, 2020