ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.TickGenerators.DateTimeAutomatic Class Reference
Inheritance diagram for ScottPlot.TickGenerators.DateTimeAutomatic:
ScottPlot.TickGenerators.IDateTimeTickGenerator ScottPlot.ITickGenerator

Public Member Functions

void Regenerate (CoordinateRange range, Edge edge, PixelLength size, SKPaint paint, LabelStyle labelStyle)
 Generate ticks based on the current settings and store the result in Ticks
 
IEnumerable< double > ConvertToCoordinateSpace (IEnumerable< DateTime > dates)
 

Properties

Func< DateTime, string >? LabelFormatter = null [get, set]
 If assigned, this function will be used to create tick labels.
 
ITimeUnitTimeUnit = null [get]
 
Tick[] Ticks = [] [get, set]
 Ticks to display the next time the axis is rendered. This array and its contents should not be modified directly. Call Regenerate() to update this array.
 
int MaxTickCount = 10_000 [get, set]
 Do not generate more than this number of ticks.
 
- Properties inherited from ScottPlot.ITickGenerator

Member Function Documentation

◆ ConvertToCoordinateSpace()

IEnumerable< double > ScottPlot.TickGenerators.DateTimeAutomatic.ConvertToCoordinateSpace ( IEnumerable< DateTime >  dates)
inline

◆ Regenerate()

void ScottPlot.TickGenerators.DateTimeAutomatic.Regenerate ( CoordinateRange  range,
Edge  edge,
PixelLength  size,
SKPaint  paint,
LabelStyle  labelStyle 
)
inline

Generate ticks based on the current settings and store the result in Ticks

Implements ScottPlot.ITickGenerator.

Property Documentation

◆ LabelFormatter

Func<DateTime, string>? ScottPlot.TickGenerators.DateTimeAutomatic.LabelFormatter = null
getset

If assigned, this function will be used to create tick labels.

◆ MaxTickCount

int ScottPlot.TickGenerators.DateTimeAutomatic.MaxTickCount = 10_000
getset

Do not generate more than this number of ticks.

Implements ScottPlot.ITickGenerator.

◆ Ticks

Tick [] ScottPlot.TickGenerators.DateTimeAutomatic.Ticks = []
getset

Ticks to display the next time the axis is rendered. This array and its contents should not be modified directly. Call Regenerate() to update this array.

Implements ScottPlot.ITickGenerator.

◆ TimeUnit

ITimeUnit? ScottPlot.TickGenerators.DateTimeAutomatic.TimeUnit = null
get

The documentation for this class was generated from the following file: