[Matplotlib-users] some problems
vincent.adrien at gmail.com
vincent.adrien at gmail.com
Fri Apr 6 14:07:05 EDT 2018
Hi Vincent,
I think that Jerzy got the correct answer about your issue with the
circle patch. The docstrings reads indeed:
```
mpl.patches.Circle(xy, radius=5, **kwargs)
Create true circle at center *xy* = (*x*, *y*) with given *radius*.
```
I did not notice any disappearance when commenting the "oeil" section
either :/.
(Attached is a script based on yours that gives the attached PNG.)
Best regards,
Adrien
On 04/06/2018 01:01 AM, Jerzy Karczmarczuk wrote:
>
>
> Le 06/04/2018 à 06:29, Vincent Douce Mathoscope a écrit :
>> hi
>> 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(...).
>
> Bon courage.
>
> Jerzy Karczmarczuk
> /Caen/
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exemple_cercle.py
Type: text/x-python
Size: 2356 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180406/47f81ea8/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exemple_cercle.png
Type: image/png
Size: 9197 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180406/47f81ea8/attachment.png>
More information about the Matplotlib-users
mailing list