Vertical plots (x on side)

23 views
Skip to first unread message

Maik Riechert

unread,
Sep 28, 2015, 10:44:54 AM9/28/15
to Flot graphs
Hi,

I didn't find an example. Is it possible with Flot to create vertically oriented plots where x is on the left side? An example: https://en.wikipedia.org/wiki/Mixed_layer#/media/File:Example_blt_31Jan2002_Argo2.png

Cheers
Maik

Ced

unread,
Sep 28, 2015, 12:51:49 PM9/28/15
to Flot graphs
I think you can just transpose your x and y values.
Instead of a point being [x,y], use [y,x]
Then, if you want your "y" axis along the top edge, set xaxis.position = "top";

Reply all
Reply to author
Forward
0 new messages