PhilReinhold / liveplot

visualize your python data as it comes in, with minimal intrusion
11 stars 5 forks source link

Set origin location in colorplots #10

Open circuitqed opened 10 years ago

circuitqed commented 10 years ago

The default is the matlab first row at the top display. You can invert the axis via the gui, but it does not invert the extents. It'd be nice if there were a kwarg added to append_z / plot_z to change the origin..

PhilReinhold commented 10 years ago

Could you clarify? How does the 'origin location' differ from the 'extents'?

circuitqed commented 10 years ago

Same as in matplotlib...extents determine where the labels go, the origin location determines how the data is displayed. Unfortunately these two properties do not seem to be linked through the gui's invert axis checkbox (it starts the first row at the bottom when clicked but leaves the extents the same). An alternative method would be to catch the invert axis even within the gui and then swap the extents ordering for the y-axis...best of course would be able to specify whether or not to invert procedurally and ensure that the extents are added in the correct sense

PhilReinhold commented 10 years ago

OK, so I may have to dig in a bit deeper to fix this correctly, but tell me if this matches your experience.

If I plot an image while specifying extents manually, check the 'invert Y' button in the context menu, and refresh the plot by moving it around a bit the extents flip to match the flipped image. Do you see this behavior?

On Tue, Aug 26, 2014 at 7:40 PM, Dave Schuster notifications@github.com wrote:

Same as in matplotlib...extents determine where the labels go, the origin location determines how the data is displayed. Unfortunately these two properties do not seem to be linked through the gui's invert axis checkbox (it starts the first row at the bottom when clicked but leaves the extents the same). An alternative method would be to catch the invert axis even within the gui and then swap the extents ordering for the y-axis...best of course would be able to specify whether or not to invert procedurally and ensure that the extents are added in the correct sense

— Reply to this email directly or view it on GitHub https://github.com/PhilReinhold/liveplot/issues/10#issuecomment-53508893 .

Philip Reinhold Graduate Student Research Assistant Schoelkopf Lab Yale University (716)-359-2610