[Matplotlib-users] some problems
jerzy.karczmarczuk at unicaen.fr
Fri Apr 6 04:01:19 EDT 2018
Le 06/04/2018 à 06:29, Vincent Douce Mathoscope a écrit :
> i am workind on the thread "filling"
> since a cuple of months i did not use Matplotlib
> i have difficulties to get comfortable with simple lines of code
> for example (end of this mail)
> - why do the circle appear so big whereas the dimension of the picture
> are [0,5] for x and for y and the radius of the circle is 0.05 ?
* The dimensions of your *figure* are of 2.75 inches (7/2.54).
* [0, 5] for xmin, xmax etc. are your conventional units within axes,
not related to figsize.
* The radius of your Circle patch is 1 ; (0.05,0.05) is its center.
> - why, if i cancel the paragraph named "oeil......", do the circle
> disappear ?
* I don't see any disappearance. If you "close your eye", the two plots
of sqrt(whatever) are eliminated,, but the patch is still there. Only
Matplotlib redefines the scale of the plot, the circle becomes bigger,
and a smaller fragment is plotted.
Notice that you never fix the scales using axis(...).
More information about the Matplotlib-users