[Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-26 Thread Todamont
I'm charting financial data, so scientific notation is unwanted in ALL cases. Sometimes if I pass it data with just a few trades right near each other, it scales so the y-axis get set to some bizare exponent, like 1.7321e1. By the way, why would anyone ever want a plot in scientific notation where

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-26 Thread Todamont
This is the relevant code: import sys, shutil import matplotlib from matplotlib.figure import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg from mhd_scipy import load_mhd from datetime import datetime import matplotlib.dates as dates import matplotlib.pyplot as plt import nump

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-26 Thread Todamont
I'm trying to boil this thing down to a simple example program for you, it's part of a big project so it's kind of tough, all the data is stored in RAM, never in files... It seems like there should be some way to just tell matplotlib to NEVER use scientific notation for the axes... I'd be willing

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-26 Thread Todamont
Ok, here is the distilled code that displays the scientific formatting failure I'm trying to fix. I had to wait until the market gave me a snapshot that triggered this bug. Here is a quick link to the image I get when I run this program: http://imgur.com/77DUbZp I greatly appreciate your help with

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-26 Thread Todamont
Thank you! Success! Yeah, I learned a little from this little exercise. I will set the "extent" on the image to include a buffer in the y-axis, a certain percentage of max(price)-min(price), for some durations. If there is only a single trade during any duration, well... I need handle that as a

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-27 Thread Todamont
for the record I had to put the buffer on the set_limit commands, not the "extent" of the image, like so: priceDiff = max(price)-min(price) diffQuant = priceDiff / 4 minQuant = min(price)-diffQuant maxQuant = max(price)+diffQuant pl.set_ylim([minQuant,maxQuant]) and also include:

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-27 Thread Todamont
Hm. This stretches the background image (mhd data) to fit, leaving the price line-plot not lining up with the background density plot. Now I have to figure out how to make the density plot scale to fit... -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplo

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-27 Thread Todamont
Ok, finally, to get the scaling to work, I rewrote the c density plotter to accept a scaleFactor argument to affect a new max/min y-axis on that end and pass it to the python script which reads the background as an mhd dataset. Then I had to update my python to include the new scaled y-axis limits