[Matplotlib-users] Python for Scientists - courses in Germany and US
Learn matplotlib and Much More == Scientists like Python. If you would like to learn more about important libraries for scientific applications, you might be interested in these courses. The course in Germany covers: - Overview of libraries - NumPy - Data storage with text files, Excel, netCDF and HDF5 - matplotlib - Object oriented programming for scientists - Problem solving session The course in the USA covers all this plus: - Extending Python in other languages - Version control - Unit testing More details below. If you have any questions about the courses, please contact me. Mike Python for Scientists and Engineers (Germany) - A three-day course covering all the basic tools scientists and engineers need. This course requires basic Python knowledge. Date: 19.01.-21.01.2012 Location: Leipzig, Germany Trainer: Mike Müller Course Language: English Link: http://www.python-academy.com/courses/python_course_scientists.html Python for Scientists and Engineers (USA) - This is an extend version of our well-received course for scientists and engineers. Five days of intensive training will give you a solid basis for using Python for scientific an technical problems. The course is hosted by David Beazley (http://www.dabeaz.com). Date: 27.02.-02.03.2012 Location: Chicago, IL, USA Trainer: Mike Müller Course Language: English Link: http://www.dabeaz.com/chicago/science.html -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] use legend's 'best' location for a text box
As far as I know, No, there is no such way inside matplotlib that does that for you. But, in theory, it should not be very difficult to implement. Can you open a new issue on our github page? Regards, -JJ On Thu, Jan 12, 2012 at 4:16 AM, Craig the Demolishor wrote: > Hi, > I'm drawing a histogram and I would like to place a text box within the > axes that shows the number of events. I like the way I can pass "loc='best'" > to pyplot.legend() and it automatically does its best to avoid my data. Is > there any way to replicate this for a simple call to pyplot.text(), like so: > > ax.text(0.05, 0.95, 'Entries: ' + len(myData), > transform=ax.transAxes, fontsize=14, verticalalignment='top', > bbox=dict(boxstyle='square', facecolor='white')) > > Thanks in advance! > > --craig > > -- > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How do you change the position of an annotation?
I'm trying to update the position of an annotation. If I add an annotation, change it's position using set_position, I find the value of the position (found using get_position) is updated, but the actual position on the figure does not change. How can I actually change the position of the text and starting point of the corresponding arrow? Here's an example: import matplotlib.pyplot as plt data = [10, 8, 8, 5] fig = plt.figure() ax = fig.add_subplot(111) ax.bar(range(len(data)),data) ax.set_ylim(0,max(data)+2) annotationPos1 = ax.annotate("Really long and large label",fontsize=12, xy=(1.4,8), xytext=(1.4,8.5), arrowprops=dict(arrowstyle="->") ) annotationPos2 = ax.annotate("Really long and large label",fontsize=12, xy=(1.4,8), xytext=(1.4,10.5), arrowprops=dict(arrowstyle="->") ) apos1before = annotationPos1.get_position() annotationPos1.set_position((apos1before[0],apos1before[1]+2)) apos1after = annotationPos1.get_position() apos2 = annotationPos2.get_position() print apos1before,apos1after,apos2 plt.show() Thanks, Yann -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] [Python] How to show milliseconds with time?
How can I show the milliseconds with the library time because time.time is precise (or at least show) up to 0.01 seconds and it seems it's not possible to print more than seconds... An idea? I use time.strftime("%H:%M:%S", gmtime(time.time())) Fabien -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users