SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S

1
(10)
2
(17)
3
(14)
4
(28)
5
(23)
6
(12)
7
(3)
8
(11)
9
(29)
10
(31)
11
(9)
12
(35)
13
(3)
14
(9)
15
(16)
16
(14)
17
(10)
18
(7)
19
(3)
20
21
(4)
22
(6)
23
(14)
24
(16)
25
(10)
26
(5)
27
(4)
28
(8)
29
(19)
30
(21)




Showing 3 results of 3

Chris,
Do you have any online tutorial for this topic? 
Thanks,
JJ
On Thu, 2009年06月18日 at 08:38 -0700, Chris Withers wrote:
> Hi All,
> 
> Too many people in the Python community *still* think the only way to
> work with Excel files in Python is using COM on Windows.
> 
> To try and correct this, I'm giving a tutorial at this year's
> EuroPython
> conference in Birmingham, UK on Monday, 29th June that will cover
> working with Excel files in Python using the pure-python libraries
> xlrd,
> xlwt and xlutils.
> 
> I'll be looking to cover:
> 
> - Reading Excel Files
> 
> Including extracting all the data types, formatting and working
> with
> large files.
> 
> - Writing Excel Files
> 
> Including formatting, many of the useful frilly extras and writing
> large excel files.
> 
> - Modifying and Filtering Excel Files
> 
> A run through of taking existing Excel files and modifying them in
> various ways.
> 
> - Workshop for your problems
> 
> I'm hoping anyone who attends will get a lot out of this! If you're
> planning on attending and have a particular problem you'd like to
> work
> on in this part of the tutorial, please drop me an email and I'll
> try
> and make sure I come prepared!
> 
> All you need for the tutorial is a working knowledge of Excel and
> Python, with a laptop as an added benefit, and to be at EuroPython
> this
> year:
> 
> http://www.europython.eu/
> 
> I look forward to seeing you all there!
> 
> Chris
> 
> --
> Simplistix - Content Management, Zope & Python Consulting
> - http://www.simplistix.co.uk
> 
> 
> --
> http://mail.python.org/mailman/listinfo/python-announce-list
> 
> Support the Python Software Foundation:
> http://www.python.org/psf/donations.html
> 
> 
> 
Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Panasonic Avionics
Corporation. This transmission is intended only for the use of the 
addressee(s) listed above. Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission.
From: Jae-Joon L. <lee...@gm...> - 2009年06月19日 16:34:14
Hi,
You can try to manually adjust x-limits.
plt.xlim(dateList[0], dateList[-1])
However, manual adjustments will become a bit more difficult as your
plot gets more complex.
Well, I think the best way is to install a newer version of mpl on
your ubuntu 8.10 if possible.
-JJ
On Thu, Jun 18, 2009 at 2:18 PM, Dave Coutts<dac...@go...> wrote:
> Hi All
>
> Just wondering if anybody could give me some pointers on the problem I have
> described below ?
>
> For those that getting redirected to the freehostia main page for what ever
> reason, please try this link.
> http://waka.freehostia.com/python/
>
> Thanks
>
>> Hi
>>
>> I am developing on a Desktop install Ubuntu 9.04 machine with matplotlib
>> 0.98.5.2,
>> and running the scripts on a Server install Ubuntu 8.10 machine with
>> matplotlib 0.98.3.
>>
>> I have found that the X axis layout for the same script varies between the
>> two machines.
>> Both have standard matplotlib installs using apt-get. I haven't made any
>> tweaks.
>>
>> Rather than go into great detail about the problem, please see the script
>> below and links to the resulting png files.
>> I hope the png files tell the story.
>>
>> http://waka.freehostia.com/python/date_axis_scaling_test.py
>> http://waka.freehostia.com/python/date_axis_scaling_test_0_98_3.png
>> http://waka.freehostia.com/python/date_axis_scaling_test_0_98_5_2.png
>>
>> The plot produced by
>> matplotlib 0.98.3 isn't what I want.
>> Id like the plot to go edge to edge on the x axis grid, as the matplotlib
>> 0.98.5.2 version does.
>>
>> Help and advise would be appreciated.
>> PS : I'm new to python &
>> matplotlib
>>
>>
>> ######################################################################################
>> #!/usr/bin/env python
>> import matplotlib
>> matplotlib.use('Agg')
>> import matplotlib.pyplot as plt
>> from datetime import datetime, timedelta
>>
>> version  = matplotlib.__version__
>> HOURSBACK = 365 * 24
>> now    = datetime.now()
>> valueList = []
>> dateList = []
>>
>> for i in range(HOURSBACK):
>>   hoursBack = timedelta( hours = (HOURSBACK - i) )
>>   then = now - hoursBack
>>   valueList.append( i )
>>   dateList.append( then )
>>
>> fig = plt.figure( figsize=(12, 9), dpi=100 )
>> ax = fig.add_subplot(111)
>> ax.plot(dateList, valueList)
>> plt.title('Date axis scaling test for matplotlib version : %s' % (
>> version ) )
>> plt.grid(True)
>> plt.ylabel('Widgets')
>> plt.xlabel('Date')
>> fig.autofmt_xdate()
>>
>> plt.savefig( "date_axis_scaling_test_%s.png" % version.replace('.','_'),
>> format='png' )
>>
>> quit()
>>
>> ######################################################################################
>>
>>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Gert-Jan <gj_...@ho...> - 2009年06月19日 13:12:01
Hey there,
In the application I'm building, I'm using Python 2.5 to place a toolbar
from Matplotlib 0.98.5.2 in a Qt 4 environment. Now I'd like to modify the
toolbar to suit our needs. So, I've done the following:
> from PyQt4 import QtGui
> from matplotlib.backends.backend_qt4 import NavigationToolbar2QT
> from matplotlib.backend_bases import NavigationToolbar2
> 
> class Toolbar(NavigationToolbar2QT) :
> 	def __init__(self , parent , canvas, coordinates=True) :
> 		self.canvas = canvas
> 		self.coordinates = coordinates
> 		QtGui.QWidget.__init__( self, parent )
> 		NavigationToolbar2.__init__( self, canvas )
> 
I'd like to delete the configure subplots button, and add a new button in
it's place. However, I can't seem to find the configure subplots button, as
it is not listed in its method/object list. So, I had to use this crude
method:
> 		pushButtonCounter = -1
> 		for child in self.children():
> 			if str( type(child) ) == "<class 'PyQt4.QtGui.QToolButton'>":
> 				pushButtonCounter += 1
> 				if pushButtonCounter == 6:
> 					configuresubplots_button = child
> 
Also, Python 2.5 crashes when trying to do certain things with the button:
> 		configuresubplots_button.deleteLater() # Crashes
> 		# Ugh, I forgot what other kinds of operations make Python crash... I
> think trying to connect and disconnect functions didn't go right... not
> sure though.
> 
These things, however, do work (or at least don't make Python crash):
> 		configuresubplots_button.setEnabled(False) # Works
> 		configuresubplots_button.setHidden(True) # Does not work, but doesn't
> cause a crash, either.
> 		configuresubplots_button.setIcon(QtGui.QIcon('newicon.PNG')) # Works
> 		configuresubplots_button.setToolTip('Another tool tip') # Works
> 		configuresubplots_button.connect(child, QtCore.SIGNAL('clicked()'),
> self.new_fuction) # Works, though this should only be done after you
> instantiate this class in your GUI. So, you have to loop again to find the
> button to connect it.
> 
So, in the end, I managed to change the configure_subplots button into the
button I want. However, such a method should not be necessary.
The question is whether I was doing something wrong, and if so, how I could
have done this differently?
My sincere thanks for your time and efforts!
Cheers,
Gert-Jan
-- 
View this message in context: http://www.nabble.com/Qt4-backend-question-tp24110367p24110367.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Showing 3 results of 3

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /