<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:8pt"><div><span><br></span></div><div>Ciao a tutti,</div><div>sto creando un programmino che mi crea alcuni grafici di temperature, umidità, eccetera... <span style="font-size: 8pt;">il tutto utilizzando matplotlib.</span></div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">A volte mi capita che alcuni valori vengano rappresentati in maniera sballata e non capisco cosa effettivamente mi sfugga o se sia un bug.</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Sono riuscito a ricreare il problema utilizzando la shell e la problematica mi si ripresenta sia su linux (Ubuntu) che su Win7.</div><div
 style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Ad esempio:</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">from matplotlib.pylab import *</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">X=[23,67]</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family:
 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Y=[24.3,24.4]</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">plot (X,Y)</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">show()</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Nel grafico che viene disegnato ritrovo l'asse X con un range di valori corretti che vanno da 20 a 70, mentre l'asse Y con un range di valori che parte da 0.00 e va fino a 0.10 con
 indicato +2.43e1 come fine scala.</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Anche forzando i limiti dell'asse Y con ylim(min(Y),max(Y)) ottengo lo stesso risultato.</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><br>Avete qualche idea?</div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Grazie<br><br></div><div style="color: rgb(0, 0, 0); font-size: 10.666666984558105px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Piergiorgio</div>  </div></body></html>