[Matplotlib-users] text annotation
Hi, I'm a new matplotlib user and I'm already impressed by matplotlib's features! But I can't find how to do something that looks quite easy. I have several points making something that looks like a circle. I would like to anotate these point. How can I manage the annotation of points forming a circle if I have their coordinates? Any help would be appreciate. Thank you. Ben -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] text annotation
On 11/26/2010 8:12 AM, Benoist Laurent wrote: How can I manage the annotation of points forming a circle if I have their coordinates? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.annotate http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.text http://matplotlib.sourceforge.net/examples/api/joinstyle.html hth, Alan Isaac -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] text annotation
Thank you for your answer. I read the text and annotate manual pages. I don't understand how the polar xycoords/textcoords works. I guess I should use this but its not clear to me. Le 26 nov. 10 à 14:13, Alan G Isaac a écrit : On 11/26/2010 8:12 AM, Benoist Laurent wrote: How can I manage the annotation of points forming a circle if I have their coordinates? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.annotate http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.text http://matplotlib.sourceforge.net/examples/api/joinstyle.html hth, Alan Isaac -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] date plot with two y axes...and some other things
On Thu, Nov 18, 2010 at 12:59 PM, C M cmpyt...@gmail.com wrote: Goals: date plot with two y axes (plotting completely different things) point picking and point labeling As many lines as user wants, all colored differently. Having some problems with this. (matplotlib 0.98.5) 1) There is a known bug with twinx() and plot_date: http://sourceforge.net/tracker/index.php?func=detailaid=3046812group_id=80706atid=560720 But I can get it to work if I change ONE OF the plot_date() calls (the one for the values plotted to the right-hand y axis) to just plot(). Is that going to introduce problems? Is there a better workaround? (The ones on that page don't work for me). So far, so good with this. But for others working on it, I have found that the *order* of plotting matters. That is, I have two axes and I have to use plot() for one axis and plot_date() for the other, but it must be plot() that is used first or else I will get the error: ValueError: ordinal must be = 1. I'm managing my lines and grouping them by axes, and then making sure I plot all the lines on the axis that uses plot() first. Seems to work fine after that. 3) My point picking is not working with the two axes. In my routine, I label the picked point and to do that I have to make reference to its axis and call plot_date(). How can I know which axis the picked point came from, so that I can label it appropriately? I should have just thought about that more. Of course, there is the method myline.get_axes() for that. Che -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] display multi languages in a string.
i get matplotlib from Sourceforge ,it's matplotlib-1.0.0.win32-py2.6.exe OS:Win7 ActivePython-2.6.6.15-win32-x86.msi here is the code: # -*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.figure(figsize=(8,4)) a = plt.text(0.05, 0.05, uDefault Font缺省字体조선어にほんごภาษาไทย)#multi language ,some cann't display plt.text(0.05, 0.45, uMicrosoft YaHei微软雅黑, fontproperties='Microsoft YaHei')#Chinese OK plt.text(0.05, 0.25, uLilyUPCภาษาไทย, fontproperties='LilyUPC')#Tai OK plt.xlabel(uxlabelにほんご,fontproperties='STXihei')#Japanese ,OK plt.ylabel(uylabel조선어,fontproperties='Malgun Gothic')#Korea,OK plt.show() C:\Python26\Lib\site-packages\matplotlib\mpl-data\matplotlibrc: font.family : sans-serif font.sans-serif : Microsoft YaHei,Malgun Gothic,LilyUPC,FangSong,YouYuan,SimHei,STKaiti,STSong,SimSun-ExtB,Webdings,Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif it seems if a default font doesn't have all char's in the Default Font缺省字体조선어にほんごภาษาไทย string,it won't display correctly. -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Matplotlib Windows binaries - problem
Hi, I'm trying to install matplotlib on a windows machine at work to try and demonstrate its usefulness. I have Python 2.6 installed and managed to use the numpy binary install without admin priviledges. The matplotlib binary installer, however, requires admin priviledges, and I don't understand why - is an alternative installer available, because otherwise, I'll have to drop matplotlib and Python for somethign else, as IT will take a month or two to install it for me. I know I could build it myself, but the same restrictions are causing problems getting the pre-requisites installed! Cheers, Fred -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] lines not shown within transparent marker?
On Friday, November 26, 2010, C M cmpyt...@gmail.com wrote: This is not important at all and unlikely to be supported, but just out of curiosity: Is it possible to set matplotlib such that, when using the 'o-' marker style (marker connected by lines) and partially transparent markers, the lines are not shown within the transparent marker? That is, the lines would stop at the boundary of the marker and pick up again at the other side. This would produce a better aesthetic effect, I think, than the lines being seen coursing through the marker when the markers are transparent. Thanks, Che -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users If it is at all possible (and I don't think it can yet), I think it would be with join styles. Otherwise, the lines are simply drawn from point to point and the markers laid on top of that. Ben Root -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] pylab
On Thursday, November 25, 2010, robert fujii robertf...@gmail.com wrote: Hello - I am using python 2.6, numpy-1.3.0-win32- superpack-python2.6, scipy-0.7.1-win32-superpack-python2.6, sympy-0.6.7.win32, matplotlib-1.0.0.win32-py2.6, and brian-1.2.1.win32. I would like to import pylab , however I get the following messages shown below. Any assistnce would be highly appreciated. Thank you. Robert * import pylab File F:\Python26\lib\site-packages\pylab.py, line 1, in module from matplotlib.pylab import * File F:\Python26\lib\site-packages\matplotlib\pylab.py, line 206, in module from matplotlib import mpl # pulls in most modules File F:\Python26\lib\site-packages\matplotlib\mpl.py, line 2, in module from matplotlib import axis File F:\Python26\lib\site-packages\matplotlib\axis.py, line 10, in module import matplotlib.font_manager as font_manager File F:\Python26\lib\site-packages\matplotlib\font_manager.py, line 1301, in module _rebuild() File F:\Python26\lib\site-packages\matplotlib\font_manager.py, line 1292, in _rebuild fontManager = FontManager() File F:\Python26\lib\site-packages\matplotlib\font_manager.py, line 984, in __init__ self.ttffiles = findSystemFonts(paths) + findSystemFonts() File F:\Python26\lib\site-packages\matplotlib\font_manager.py, line 330, in findSystemFonts for f in win32InstalledFonts(fontdir): File F:\Python26\lib\site-packages\matplotlib\font_manager.py, line 213, in win32InstalledFonts key, direc, any = _winreg.EnumValue( local, j) MemoryError Did you have a previous version of matplotlib? Did you ever have difficulties with that version on this computer? Ben Root -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib Windows binaries - problem
On Friday, November 26, 2010, Fred Pollard fred.poll...@gmail.com wrote: Hi, I'm trying to install matplotlib on a windows machine at work to try and demonstrate its usefulness. I have Python 2.6 installed and managed to use the numpy binary install without admin priviledges. The matplotlib binary installer, however, requires admin priviledges, and I don't understand why - is an alternative installer available, because otherwise, I'll have to drop matplotlib and Python for somethign else, as IT will take a month or two to install it for me. I know I could build it myself, but the same restrictions are causing problems getting the pre-requisites installed! Cheers, Fred Fred I have not tried installing mpl on windows, but when building on Linux, I can pass the --user option in the command-line to setupegg.py to do a local build and install. Maybe the same is available on Windows? Ben Root -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib Windows binaries - problem
On 11/26/2010 2:28 AM, Fred Pollard wrote: Hi, I'm trying to install matplotlib on a windows machine at work to try and demonstrate its usefulness. I have Python 2.6 installed and managed to use the numpy binary install without admin priviledges. The matplotlib binary installer, however, requires admin priviledges, and I don't understand why - is an alternative installer available, because otherwise, I'll have to drop matplotlib and Python for somethign else, as IT will take a month or two to install it for me. I know I could build it myself, but the same restrictions are causing problems getting the pre-requisites installed! Cheers, Fred The matplotlib installers for Windows are executable ZIP files generated by Python's builtin distutils package with the --user-access-control=auto option. See the following links for previous discussions and a workaround for your problem. http://sourceforge.net/tracker/?func=detailaid=2858636group_id=80706atid=560720 http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg17728.html http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg13466.html Christoph -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users