matplotlib figure coordinates of plot area - matplotlib

How do you find the location of the plot area of an axes in figure coordinates or pixel coordinates?
I'm actually trying to capture click and motion events on the x axis area below the plot. So I'm getting an event and trying to test if it's y coordinate is below the plot area. I would think this is simple, but I can't seem to find anything by searching.

SOLVED - found it - wasn't easy to find - axes.bbox.bounds bounds is in pixels, same as the event.

Related

Update and Display a Coordinate Axis being Rotating and Translated in Real Time in Matplotlib?

I'm currently trying to recreate this: video, and I could not find how to recreate the 3D visualization step, where coordinate axis are translated and rotated around, in matplotlib. Does anyone know how to do in matplotlib's animation, updating the results in real time?

Get the co-ordinates of markup on image in cocoa

I need to get the co-ordinates of markup(it may be circle, rectangle or any shapes) on image in cocoa. It would be starting x,y points when markup starts or the x,y points when markup ends.
Now I am to able to draw a shape on image, but I am unable to get the x,y points of that shape.
[_imageView setCurrentToolMode: IKToolModeAnnotate];
This line of code I am using to draw a shape.
Can anybody help to solve this problem.

Drawing dots in polar

how to draw just dot in polar coordinates, cannot find any example like that?
When I choose theta and some radius nothing gets displayed, other graphs works perfect.

Core Plot Charts Axis Position

I'm using core plot 1.0. Currently I'm making the X axis draw say 20 points above the bottom of the screen (so the labels can show up) by defining the Y range a little bit below 0.
Now I was asked that the origin point should be 0.0 and there should not be anything below 0 in both axes, so I'm now looking at the core plot documentation and scratching my head with the following question:
What property do I need to set to move the axes at the position I'd like to and also keep on showing the point labels and axis titles?
Thanks a lot!
I've found it so I leave it here for if somebody else needs help with this.
It is kind of tricky, you need to adjust the xRange and yRange on the plot space so it's big enough to draw the labels, the ticks and the titles and then adjust the visibleRange property on each axis. At this point you get the amount of axis you want and still displaying the information you need.
If someone knows a better way please share :)

How to move a Core Plot graph

I have a Core-Plot Graph within a Mac Application. But the inside table is appearing shifted down and to the left of the containing "frame/border" so that neither of the axis' are showing. I cannot figure out how to change this does anyone know what parameters I need to change to fix this?
Update: Sorry I did not realize I could upload an image, I have done so know and will try your suggestions in the mean-time.
Not sure what you mean by "inside table". It would be easier to offer suggestions if you could post a screenshot.
Without seeing what's wrong, here are some common areas to look at:
If you haven't already done so, look at the example apps included with Core Plot for ideas. The Plot Gallery app has many sample plots and the others are useful, too.
You may need to add padding (paddingLeft, paddingBottom, etc.) on the graph and/or plot area frame. Padding the graph pushes everything in away from the edges of the graph. Padding the plot area frame pushes the plot area in so the axes and titles can hang outside the plot area (the area where the plots are drawn).
If you want to keep an axes pinned to a specific place, e.g., the edge of the graph, set up a floating axis. Otherwise make sure the orthogonal coordinate is set (it defaults to 0). For example, the orthogonal coordinate for the x-axis is the y-value where the x-axis crosses the y-axis.