how to plot curve only horizontally and vertically

34 views
Skip to first unread message

Aro RANAIVONDRAMBOLA

unread,
Aug 3, 2012, 5:13:48 AM8/3/12
to flot-...@googlegroups.com
Hi, 

I'd like to know how to plot lines between two points only horizontally and vertically like this:


                   x---------  
                   |          |
                   |          |
         x--------|          x--------------------------------|
         |                                                     |
x-------|                                                     x


Thanks for your help

DNS

unread,
Aug 3, 2012, 7:44:36 AM8/3/12
to flot-...@googlegroups.com
Lines have a 'steps' option that enables this behavior.  Take a look at the API documentation for more information.

Quentin

unread,
Aug 3, 2012, 8:55:41 AM8/3/12
to flot-...@googlegroups.com

I’m interested in this too – the problem with steps option is that if you turn on points, it puts a point at both ends of each horizontal line, when I’d like them only at the start (as Aro illustrated).

 If anyone knows a way to do this then I’d be happy to learn about it.

 Thanks, Quentin

Reply all
Reply to author
Forward
0 new messages