the height is 0.15 but the width is 0.02. In the above example, we would make the ellipsis look like an egg in data coordinates, e.g. circles -> ellipses) that use data coordinates, but skew the offsets from the center of the shape differently for x and y. combine them to compute the composite aspect ratio (e.g.if the axes is 300px wide and 100px tall, it would be 3/1) compute the axes size in pixels and get that aspect ratio (e.g.compute the rough x/y limits on the plot based on the vertex layout coordinates, and get the data aspect ratio (e.g.One way to reproduce something close to (but not exactly equal to) Cairo would be to rescale manually the markers for x and y axis separately (e.g. The short answer is that unless we create a customized third way of making circles in matplotlib (and triangles, etc.) which is currently out of question because of time constraints, we cannot reproduce Cairo's behaviour exactly within matplotlib. The alternative would be friendly to changes of aspect ratios, but the dot size is independent of zoom, i.e. PNG), if you zoomed in only horizontally you would get the same artifact. zoom in only one axis), in which cases the circles become ellipses. However, because the circle is defined in data units, it really dislikes changes of aspect ratio (e.g. That is what you would get by literally using a loupe on a raster image with the plot - i.e. The current choice works in such a way that when you zoom in the circles become bigger.
0 Comments
Leave a Reply. |