Re: [Matplotlib-users] change axes/tickmarks/ticklabels color
George Apologies for all-too-brief reply the first time around. I am more than rusty with matplot, but need to brush up again. What you are wanting to do is not so straightforward and, unfortunately, is not documented all in one place. I have found a number of references to different bits-and-pieces of the puzzle, and I include these here: http://sourceforge.net/mailarchive/message.php?msg_id=871x367j87.fsf%40peds-pc311.bsd.uchicago.edu http://sourceforge.net/mailarchive/message.php?msg_id=87ll50xybc.fsf%40peds-pc311.bsd.uchicago.edu http://sourceforge.net/mailarchive/message.php?msg_id=87br7eoo4o.fsf%40florent.maison http://sourceforge.net/mailarchive/message.php?msg_name=m2d61xe7lv.fsf%40mother.paradise.lost (in particular, the frame - x and y axes - does not have a color setting and needs to be turned off, following which lines can be drawn in its place with axhline and axvline) I am sure more searching in the mail archives will yield more gems! Part of the issue is, I think, that these are all different types of objects and therefore handled in different ways. It would be really good to come up with a definitive example and post it here when the question arises again, we can just point back to this example (and possibly ask for it to be included in further releases of the samples.zip from the website). Derek George Nurser [EMAIL PROTECTED] 2007/10/16 04:10 PM Hi Derek, I did setp(a2.get_xticklabels(), color='w') setp(a2.get_yticklabels(), color='w') and this made the ticklabels readable, which is the main thing. Ideally it would be nice to change the axes and tickmark colors but it's not essential. setp(a2.get_xticks(), color='w') setp(a2.get_yticks(), color='w') setp(a2.get_axes(), edgecolor='w') don't work. Many thanks, George Nurser. On 16/10/2007, Derek Hohls [EMAIL PROTECTED] wrote: The mailing list archives know all http://sourceforge.net/mailarchive/[EMAIL PROTECTED] George Nurser [EMAIL PROTECTED] 2007/10/16 01:20 PM Hi, I feel that this should be simple, but I can't find anything on it. How do I change the color of the axes/tickmarks/ticklabels? I want to superpose a second plot onto a part of a pcolor plot that is dark blue. I can change the background color OK, but not that of the axes themselves. Regards, George Nurser. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plotting wind-speed time series
John If you look through the thread, you will see I have responded before saying I that had used this code successfully. I did not find any detailed documentation necessary... the program is really self- explanatory and well-commented. Here is a sample that works for me: from pylab import * import windrose figure(figsize=(8,8), facecolor='w') ventV = [ 0.2, 0.2, 0.35, 0.09, 0.55, 0.5, 0.2, 0.33, 0.44, 0.22 ] ventD = [ 65., 59., 74., 231., 268., 283., 166., 214., 66., 114.] freq,ax=windrose.windplot(ventV,ventD,counts=False,speed_classes=[0.1,0.2,0.3,0.4,0.5],sectors=8,style='bar2') title(And here is the title!, fontsize=14) fig=ax.get_figure() #for leg in fig.legends: # setp(leg.get_texts(), fontsize=8) draw() show() The commented code is in case you want to set the font size for the legend. Derek PS As I said before, I suggest you get the latest version. [EMAIL PROTECTED] 2007/05/07 11:47 PM Thanks to everybody that responded to my question. After looking at the different options, I do agree that windrose.py fits my need the best. Unfortunately, there is insufficient information embedded in the code to the point where I can use it. I sent the author a email requesting more info and hopefully he would respond. Just in case, have anybody used this code successfully? If so, could you please share a sample dataset to use windrose.py? Thanks, grab windrose.py at the end of this thread http://www.nabble.com/windrose-t1392107.html I've not used it but I think it is what you are looking for: a windrose module for python. JDH -- John Henry - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] time axis
Sture Did you look in the mail archive - there is a thread titled: x-axis Label in hh:mm:ss format which addresses this. Derek Sture Lygren [EMAIL PROTECTED] 2007/02/12 12:14:26 PM Hi, Been reading the docs but couldn't find an easy solution for this one ... I've got a dataset containing dates and measurement (['2006-12-26 00:00:10','2006-12-26 00:00:20',...], [10.1722,7.99665,...]). Converting dates using time.strptime, datetime and date2num I end up with this dataset ([732671.000116,732671.000231,...],[10.1722,7.99665,...]) Question now is - how can I plot this set with x-axis ticks showing '00:00:00','00:00:10' and so on? The dataset spans 24 hours of measurements - how, if at all possible, do I specify major ticks for every 6 hour? Help is much appreciated! regards, Sture - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Adding text and rectangles below plotted data?
I would like to be able to draw rectangles, with text centered inside them, at key positions on a plot. The case in question is a bar plot, and the rectangles need to be drawn such that they are length of one or more of the each bar groupings, side-by-side in a line along the width of the X-axis. The line of rectangles should be located just below the X-axis tickmark labels. I see the fill() command allows plotting of a polygon and the figtext() command allows text to be plotted so, in theory, these should work. My problem is (a) what is the syntax for the fill() command - I have tried ax.fill(0.5,0.5,'b') and get an error: TypeError: zip argument #1 must support iteration (b) how to calculate the correct (x,y) values for locating the start/stop points of the rectangles? i.e. how do I find out where the start/end points are for the X values of each bar grouping? And at what vertical height should the line of rectangles be located? Any ideas or insights would be appreciated? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Plotting the legend above the gridlines
The command: ax = lab.subplot(111, axisbelow='True') ensures that the gridlines appear below the bars on a plot; how can the same be done for the legend (ie the grid below the legend and not running through it)? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Changing the font for the legend
I would like to know how to change the font for the legend. The usual method of: yticklabels = getp(gca(), 'yticklabels') setp(yticklabels, color='black', fontsize=6) Does not seem to work for legend. And when I try: legend( ... prop=FontProperties('smaller') ) as per the webpage, I get a warning message and the font size is unchanged. What is the best method for changing font properties (e.g. point size, color) for the legend? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] windrose 0.5
Lionel Is it possible to change the font sizes on the (a) direction labels (N, S, E, W) (b) % values labelling the rings? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Optimizing images for web display?
Does anyone have experience in what settings to use to create matplotlib images such that they will display well in a webpage - the ones I have are typically square, or 3:2 ratio or 2:1 ration (length:height). What output settings work well so that the images look good on screen and when printed out (typically to a hi-res mono laser)? Thanks! Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Plotting data as bars with a date axis?
The standard plot: ax.plot_date(dates,values) does a dot plot whereas ax.plot_date(dates,values,'-') plots a line. How, though, do I plot values as bars? Thanks Derek PS dates are converted from an array dates as strings, using the datestr2num() - which works well! -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Box plot problem - mismatched arrays
I have a simple, but frustrating problem. I need to plot a number of series onto a boxplot. Some sample code looks as follows: from pylab import * from scipy import array jan = array([46, 38, 28, 14, 11, 7, 4, 3, 3, 3, 3, 3, 3, 2, 2, 1]) #jan = array([46, 38, 28, 14, 11, 7, 4, 3, 3, 3, 3, 3]) #this length works!! feb = array([ 2, 12, 3, 3, 13, 10, 17, 6, 6, 6, 3, 3]) jan.shape = (-1, 1) feb.shape = (-1, 1) series = concatenate( (jan, feb), 1 ) figure() boxplot(series,1) show() (In Real Life, of course, the data arrays are built up elsewhere and passed into the plotting function...) The problem is that I get the error: ValueError: array dimensions must agree except for d_0 because jan and feb have different lengths - however, I have no control over the size of these arrays - they vary greatly according to external issues. How do I plot multiple. variable-length array on the same boxplot? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Superimposed Line and Bar plots?
I am sure this (superimposed Line and Bar plots) is easy to do, but I cannot see any discussion of how on the user list (difficult to know which phrase to search!) Any pointers? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib powered website. Would love to get your feedback!
Vineet Sorry - I was not too clear on my question; I *am* currently able to use matplotlib - what I am not sure how to is to integrate it into a web framework. I have been looking at using Pylons - as that is WSGI compliant - but probably any one will do. I would like to be able to generate graphs on the fly from database data (and I assume your graphs are done a similar way), and so I was wondering what are the specifics of the approach you used for this - is it just a case of installing Python onto a server, plus the web framework code, and then importing the matplotlib code - if so, what command is used to pull the graph into the web page - the matplotlib show command? - or do you store the graph somewhere on a temporary basis and then delete again when done?? Thanks Derek PS 1 sec to make a chart sounds quick - given that it takes much longer than 1 second to load the chart across the web into one's browser... Vinj Vinj [EMAIL PROTECTED] 2006/10/09 04:25 PM Any change you could share back with the community the approach you followed - web framework used? integration strategy? deploy- ment and setup issues? graph creation methodology? web framework used: cherrypy deploymnet os: ubuntu setup issues: none I am looking to tackle a project with multi-chart reporting component features and would really love to use Matplotlib with it but am not quite sure where to start. matplotlib comes with a lot of examples and that's probably the best place to start. There is an example for how to save charts to a file (which is what I do) and another one for streaming the charts back to the user. The only issue I have faced is that matplotlib is slow for my chart types (takes about 0.8 seconds to do a chart). I'm hoping that future version of matplotlib will be faster. Guys at stockcharts.com generate charts in about 0.3 seconds. So matplotlib (for the charts I generate) is about 2.5 slower than what they use. For most people that might not be an issue, but since I pre-generate 100,000s of graphs daily it can cause a lot of pain. Vineet __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib powered website. Would love to get your feedback!
Vineet Looks very good! Only thing is that when you change search types, the "working" highlighter should be located near the search form, not at the page bottom (I missed it the first few times...) Any change you could share back with the community the approach you followed - web framework used? integration strategy? deploy- ment and setup issues? graph creation methodology? I am looking to tackle a project with multi-chart reporting component features and would really love to use Matplotlib with it but am not quite sure where to start. Thanks! Derek Vinj Vinj [EMAIL PROTECTED] 2006/10/06 06:49:19 PM Hi,I've been working hard on www.eswap.com. It'smatplotlib powered. I would like to thank thematplotlib community and especially John H. for makingthis possible. Some of the features are:1. See 20 (professional looking) charts per page2. You can tag stocks with keywords3. You can create your own sets and portfolios4. keyboard navigation. You can use the right arrowkey and left arrow keyScanning, Modelling and Back Testing are planned forrelease early next year. Can you give it a spin andlet me know how you like it?Thanks,Vineet__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -Take Surveys. Earn C! ash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Matplotlib-users mailing listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice CSIR Copyright, Terms and Conditions For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with "REQUEST LEGAL" in the subject line to CSIR CallCentre This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Getting started with bar charts
Jouni Wow! A guru at work... this solves all my current problems; your insights and comments are most appreciated! To return to my first post - matplotlib aims to make simple things simple - I would argue that the way tickmarks are currently dealt with is NOT simple it would be great to see some simplifications or additions to the interface to deal with the issues raised in this thread (for example, by aligning their behaviour and properties to other, similar, chart properties). Thanks again, Derek Jouni K Seppänen [EMAIL PROTECTED] 2006/08/23 08:52 AM [Again copying to matplotlib-users; maybe the main developers can comment on whether these shortcomings in the getp/setp interface should be fixed.] Hi Derek, It does seem as those these settings affect the top and bottom of the graph - I was wondering if it was possible to show tickmarks along the bottom edge but not the top edge? I don't think that's directly supported. Here's a hacky way to do it: lines = getp(gca(), 'xticklines') toplines = [ l for l in lines if getp(l, 'ydata') == (1,) ] setp(toplines, visible=False) How I came up with this: I knew that I wanted to make some of the xticklines invisible, so I looked at the list of line objects for clues as to what differs between them. They seem to have xdata and ydata properties, and ydata is (0,) for half of the lines and (1,) for the other half, so it looks like it is the vertical position in axis coordinates. (xdata seems to be in data coordinates.) And the other property I do not see on the list is the one that shows whether a tick goes into the graph or just out - in the prc file, there is a line: xtick.direction : in # direction: in or out but there is no direction' property? You're right, there is no obvious property to control this. Here's an even hackier way to do this (and one that doesn't look very future- proof): for l in getp(gca(), 'xticklines'): setp(l, 'marker', 5-getp(l, 'marker')) The line objects have a marker property, which is 2 for some markers and 3 for the others... so I guessed that one of them means upwards and the other downwards, and checked this guess by flipping the xtick.direction parameter and looking again. So subtracting the marker from 5 flips the direction. I wonder how this is done in Matlab? label: any string which shows me that the Yaxis has a label - in this case a string - but I do not see how one can set the font properties for the Yaxis label as it is not Text object?? I think you cannot do this with setp alone. Use the ylabel command: ylabel('foo bar', fontsize=18) -- Jouni - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users