<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:8pt"><div><span>Si, è proprio quello che cercavo, grazie!</span></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><span>Piergiorgio</span></div><div><br></div>  <div style="font-family: 'lucida console', sans-serif; font-size: 8pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">Da:</span></b> Sandro Tosi <sandro.tosi@gmail.com><br> <b><span style="font-weight: bold;">A:</span></b> piergiorgio pancino <piertoni@yahoo.it>; Discussioni
 generali sul linguaggio Python <python@lists.python.it> <br> <b><span style="font-weight: bold;">Inviato:</span></b> Venerdì 14 Giugno 2013 8:32<br> <b><span style="font-weight: bold;">Oggetto:</span></b> Re: [Python] Bug di Mathplotlib?<br> </font> </div> <div class="y_msg_container"><br>Ciao,<br><br>2013/6/14 piergiorgio pancino <<a ymailto="mailto:piertoni@yahoo.it" href="mailto:piertoni@yahoo.it">piertoni@yahoo.it</a>>:<br>> from matplotlib.pylab import *<br>> X=[23,67]<br>> Y=[24.3,24.4]<br>> plot (X,Y)<br>> show()<br><br>meglio non fare "from matplotlib.pylab import *" ma usare questo modo<br>di scrivere il codice matplotlib:<br><br>from matplotlib import pyplot as plt<br>X=[23,67]<br>Y=[24.3,24.4]<br>plt.plot (X,Y)<br>plt.show()<br><br>> Nel grafico che viene disegnato ritrovo l'asse X con un range di valori<br>> corretti che vanno da 20 a 70, mentre l'asse Y con un range di valori che<br>> parte da 0.00 e va
 fino a 0.10 con indicato +2.43e1 come fine scala.<br>> Anche forzando i limiti dell'asse Y con ylim(min(Y),max(Y)) ottengo lo<br>> stesso risultato.<br><br>in notazione scientifica, 2.43e1 e' 24.3; la scala va da 0.0 a 0.1 a<br>cui devi aggiungere 24.3 (il +2.43e1) ed ottieni proprio 24.3 e 24.4<br>che sono esattamente i valore della lista Y.<br><br>Non descrivi esattamente cosa vuoi ottenere, ma forse ylim(0,max(Y))<br>e' quello ceh cerchi?<br><br>Ciao,<br>--<br>Sandro Tosi (aka morph, morpheus, matrixhasu)<br>My website: <a href="http://matrixhasu.altervista.org/" target="_blank">http://matrixhasu.altervista.org/</a><br>Me at Debian: <a href="http://wiki.debian.org/SandroTosi" target="_blank">http://wiki.debian.org/SandroTosi</a><br><br><br></div> </div> </div>  </div></body></html>