Skip to content

improve multiplier and offset notation defaults #310

@swharden

Description

@swharden

Many people don't like the multiplier and offset notation. This is understandable. It's a bit ugly, and it can be confusing if you don't know what it is.

multiplier notation offset notation
image image

Its purpose is to keep tick labels small so they don't run off the page or overlap with axis labels.

non-interactive plots: default off

When creating regular (non-interactive) plots, the layout is adjusted to accomodate the maximum tick label width before the first render... so you probably don't need multiplier or offset notation for these instances.

user controls option 1: increase threshold of activation

The appearance of this notation is jarring. Let's make it appear less commonly by increasing the number at which it activates. Currently this behavior is controlled here:

https://github.com/swharden/ScottPlot/blob/7a1d825f0014133cfbd4294c9ac9f3b5d588d74e/src/ScottPlot/Config/TickCollection.cs#L237-L242

https://github.com/swharden/ScottPlot/blob/7a1d825f0014133cfbd4294c9ac9f3b5d588d74e/src/ScottPlot/Config/TickCollection.cs#L244-L250

user controls option 2: recalculate layout on mouseUp

Plot.TightenLayout() measures the size of all the tick and axis labels and adjusts the layout area to accomodate them. It's slow to run and moves the data area around so it shouldn't be adjusted continuously (such as before every render while mouse dragging), but perhaps it wouldn't be jarring if it were recalculated after ever mouse drop. This would allow offset and multiplier notation to be disabled by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions