precise axis limits for yaxis no longer possible?

44 views
Skip to first unread message

MissyLaMotte

unread,
Jul 26, 2019, 3:04:23 AM7/26/19
to Flot graphs
When I use somehow "crooked" values for my yaxis, let's say I want to scale my axis from -1.05 to 5.05, flot auto"corrects" these values to -2 and 6. On the xaxis I don't have that problem, it scales exactly like I want it. Is there any way to enforce precise limits for the yaxis as well?

The old version of flot which I used before (0.8.3) did not show this behaviour.

I'll attach an example file.

Thanks,
Jutta




miniflot.html

andre...@ni.com

unread,
Aug 2, 2019, 9:32:55 AM8/2/19
to Flot graphs
Jutta,

Have you tried setting axis.autoScale = 'none'?

Andrew

MissyLaMotte

unread,
Aug 5, 2019, 9:07:38 AM8/5/19
to Flot graphs

Thanks, Andrew. That indeed seems to be the solution. The autoScale option is missing from the API reference, there is only the autoscaleMargin parameter mentioned there. Also, the default seems to be different for the xaxis and the yaxis, because I did not specify it for either, but the xaxis was scaled to the precise limits while the yaxis wasn't.

Jutta
Reply all
Reply to author
Forward
0 new messages