From contact at ksunden.space Tue Feb 14 18:20:02 2023 From: contact at ksunden.space (Kyle Sunden) Date: Tue, 14 Feb 2023 17:20:02 -0600 Subject: [Matplotlib-users] [ANN] Matplotlib 3.7.0 Message-ID: Hi all, We are pleased to announce the release of Matplotlib 3.7.0. Pre-built wheels are available for most major platforms, and can be installed using `pip install matplotlib==3.7.0`. Other packages may also be available already; please check with your preferred source. We thank the 112 authors for the 427 pull requests that comprise the 3.7.0 release. Highlights of this release include: - Plotting and Annotation improvements - `hatch` parameter for pie - Polar plot errors drawn in polar coordinates - Additional format string options in `bar_label` - `ellipse` boxstyle option for annotations - The *extent* of `imshow` can now be expressed with units - Reversed order of legend entries - `pcolormesh` accepts RGB(A) colors - View current appearance settings for ticks, tick labels, and gridlines - Style files can be imported from third-party packages - Improvements to 3D Plotting - 3D plot pan and zoom buttons - *adjustable* keyword argument for setting equal aspect ratios in 3D - `Poly3DCollection` supports shading - rcParam for 3D pane color - Figure and Axes Layout - `colorbar` now has a *location* keyword argument - Figure legends can be placed outside figures using constrained_layout - Per-subplot keyword arguments in `subplot_mosaic` - `subplot_mosaic` no longer provisional - Widget Improvements - Custom styling of button widgets - Blitting in Button widgets - Other Improvements - Source links can be shown or hidden for each Sphinx plot directive - Figure hooks - New & Improved Narrative Documentation - Brand new Animations tutorial. - New grouped and stacked bar chart examples. - New section for new contributors and reorganized git instructions in the contributing guide. - Restructured Annotations tutorial. For further details, please see the What's new in Matplotlib 3.7.0 page: https://matplotlib.org/stable/users/prev_whats_new/whats_new_3.7.0.html and the milestone on GitHub: https://github.com/matplotlib/matplotlib/milestone/70?closed=1 For packagers, this release contains some changes to dependencies: * NumPy >=1.20 is now required. * pyparsing >=2.3.1 is now required. * Qt >=5.10 is now required for the Qt backends. * importlib >=3.2.0 is now required for Python < 3.10. (This is a new requirement) This release is signed by my GPG key. The fingerprint is: EB83 2218 7FD4 5119 2E43 0A72 79B3 FEC4 56F1 2599 and it is also used to sign this message. -- Kyle Sunden Matplotlib RSE -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 866 bytes Desc: not available URL: From roberto.zamora1 at unmsm.edu.pe Mon Feb 27 09:54:50 2023 From: roberto.zamora1 at unmsm.edu.pe (Roberto Martin Zamora Nevado) Date: Mon, 27 Feb 2023 09:54:50 -0500 Subject: [Matplotlib-users] Consulta sobre Tkinter y Matplotlib Message-ID: He realizado un programa en Tkinter con la finalidad de calcular el ?rea ingresando los lados, y luego graficar un punto utilizando como coordenadas uno de los lados ya ingresados (a) y la otra coordenada ser?a el ?rea (A)calculada internamente por el programa, pero al parecer esta ?ltima coordenada(A) no es tomada en cuenta, aqu? el c?digo: from tkinter import* import math import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg win=Tk() win.geometry("550x650") fr=Frame(win) fr.place(x=455,y=155) fr.config(bg="white", width=50, height=40, relief="ridge",bd=5) fr2=Frame(win) fr2.place(x=80,y=260) fr2.config(bg="white", width=400, height=350, relief="ridge",bd=5) a=DoubleVar() b=DoubleVar() A=DoubleVar() label1=Label(win,text="side a",font=("Times_New_Roman",15)) label1.place(x=240,y=50) entry1=Entry(win,textvariable=a,font=("Times_New_Roman",15),width=4) entry1.place(x=245, y=80) label2=Label(win,text="side b",font=("Times_New_Roman",15)) label2.place(x=240,y=110) entry2=Entry(win,textvariable=b,font=("Times_New_Roman",15),width=4) entry2.place(x=245, y=140) def ?rea (a,b): A1=Label(win,text="",font=("Times_New_Roman",15)) A=(a*b) A1.config(text=""+str(A),bg='white') A1.place(x=465,y=160) btn=Button(win,text="area",command=lambda:(?rea(a.get(),b.get()))) btn.place(x=250,y=10) def dibujo (): fig=plt.Figure(figsize=(5,5),dpi=80) ax=fig.add_subplot(111) ax.set_xlim(0.000, 10.00) ax.set_ylim(0.000, 10.00) ax.plot(a.get(),A.get(),color='black',marker='s') ax.set_box_aspect(1) canvas=FigureCanvasTkAgg(fig,master=fr2) canvas.draw() canvas.get_tk_widget().pack() plop_button=Button(master=win, command=dibujo, text="graphic") plop_button.place(x=250,y=230) win.mainloop() -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrestelli at gmail.com Tue Feb 28 07:06:06 2023 From: mrestelli at gmail.com (marco restelli) Date: Tue, 28 Feb 2023 13:06:06 +0100 Subject: [Matplotlib-users] Consulta sobre Tkinter y Matplotlib In-Reply-To: References: Message-ID: 2023-02-27 15:54 GMT+01:00, Roberto Martin Zamora Nevado : > He realizado un programa en Tkinter con la finalidad de calcular el ?rea > ingresando los lados, y luego graficar un punto utilizando como coordenadas > uno de los lados ya ingresados (a) y la otra coordenada ser?a el ?rea > (A)calculada internamente por el programa, pero al parecer esta ?ltima > coordenada(A) no es tomada en cuenta Hola, si bien entiendo tu pregunta, el problema es que tu funci?n "?rea" trabaja con una variable local A que m?scara localmente la variable global A=DoubleVar() . En concreto, puedes definir la funci?n as?: def ?rea (a,b): A1=Label(win,text="",font=("Times_New_Roman",15)) A.set(a*b) # definir el valor de la variable global A A1.config(text=""+str(A.get()),bg='white') # acceder al valor de A A1.place(x=465,y=160) Marco