This has been asked before, and I just filed a ticket [1]. Can anyone think
of a better way to do something like this? The fill_between below is pretty
suboptimal IMO.
import matplotlib.pyplot as plt
import numpy as np
t_sec = np.arange(6)
velocity = np.array([24., 33., 40., 45., 48., 49.])
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
On 2013/01/26 5:16 PM, Todamont wrote:
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
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
On 2013/01/26 5:33 PM, Todamont wrote:
This is the relevant code:
Thanks, but what would really help is not what you think is the relevant
code, but a completely self-contained *minimal* script, so that I can
run it as-is, then modify it (probably only slightly), and return the
modified
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
Hi Skipper,
I think you are missing one bin in your plot... but anyway, this is how I'd
do the same plot (filled step plot):
import matplotlib.pyplot as plt
import numpy as np
t_sec = np.arange(6)
velocity = np.array([24., 33., 40., 45., 48., 49.])
width = t_sec[1] - t_sec[0]
plt.bar(t_sec,
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
On 2013/01/26 7:59 PM, Todamont wrote:
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:
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
10 matches
Mail list logo