From: Gwilym T. S. <g.t...@wa...> - 2005-11-30 17:33:39
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hello,<br> <br> Is there a way to change the location of a contour label for plots made with contour() and contourf()? At the moment I'm making a plot of a data range, then changing the axes for the region I'm interested in, and this has the effect that matplotlib puts in the labels, but they disappear as I remove parts of the plot.<br> <br> The code I'm using looks like this:<br> <br> <font face="monospace">figure(23)<br> <br> levels,colls=contour(skQuantComp,[0.5,0.6,0.7,0.8,.9,1.0,1.1,1.2,1.3,1.4,1.5],alpha=0.5)<br> <br> clabel(colls, inline=0, fontsize=18)<br> xlabel('Sand-sand cost ratio for Sand K/Sand M')<br> ylabel('Cement-sand cost ratio for Sand K')<br> xticks(indRange/scInc,xtickPts)<br> yticks(indRange/scInc,tickPts)<br> axis([0,len(skQuantComp[0]),int(0.2*len(skQuantComp[0])),int(0.7*len(skQuantComp))])<br> show()<br> </font><br> Thanks,<br> <br> Gwilym<br> </body> </html> |