Skip to content
Discussion options

You must be logged in to vote

Hi @ssalsinha,

Manual Labels

The best option you have today is to use manually-defined tick positions and labels: https://swharden.com/scottplot/cookbooks/4.1.14/category/advanced-axis-features/#manual-tick-labels

var plt = new ScottPlot.Plot();
double[] yPositions = { -1, 0, 1, 2 };
string[] yLabels = { "a", "b", "c", "d" };
plt.YAxis.ManualTickPositions(yPositions, yLabels);

Being able to write a custom function to transform a tick position/label into a different label based on custom logic came up recently (#926) and is a feature I hope to get to implementing eventually (#1028)

Custom Function (new)

plt.AddSignal(ScottPlot.DataGen.Sin(51));
plt.AddSignal(ScottPlot.DataGen.Cos(51));

st…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@swharden
Comment options

Answer selected by swharden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants