0
votes
0answers
14 views

matplotlib customizing axes shadow

I would like to customize the axes shadow in a matplotlib plot. the shadow looks unpropotionate to the other patches i am adding to the plot. I need dx and dy to be at least 4 to show the perspective ...
0
votes
0answers
12 views

Parasite axis appearing at two positions and overlapping

using this example as guidance: http://matplotlib.org/examples/axes_grid/demo_parasite_axes2.html I tried to make a plot with multiple axes using twiny in stead of twinx. However, one of the axes - ...
1
vote
0answers
17 views

python: default settings for plt.pyplot.boxplot?

>>>import matplotlib.pyplot as plt >>>data = [1,2,3,4,5] # toy data >>>boxplot = plt.boxplot(data) returns a boxplot object that is of the type dict, whose ...
0
votes
0answers
20 views

Logarithmic colormap in matplotlib

Is it possible to define a matplitlib colormap which logarithmically interpolates between two given colors? Background: When plotting arrays in matplotlib via the imshow(...) command, colormaps are ...
-2
votes
0answers
20 views

How do I obtain the principal frequency of a pylab FFT output

I have a python code which plots the FFT frequencies of a dataset that I have. It uses pylab and gives me an output like this: I want to know the exact value of the principal frequency shown in the ...
-1
votes
0answers
11 views

matplotlib array solution with python

i am learning matplotlib python. but there is same problem in this program import matplotlib.pyplot as plt x = [] y = [] readf = open('data.txt', 'r') splitdata = readf.read().split('/n') ...
1
vote
0answers
10 views

Adding errorbars to 3D plot in matplotlib

I can't find a way to draw errorbars in a 3D scatter plot in matplotlib. Basically, for the following piece of code from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt fig = ...
0
votes
1answer
15 views

Install python module on synology - pip error

I'm trying to install additional python module on my Synology DS112J. I installed pip and now i'm trying to install modules. It works with the module "requests" but don't with matplotlib and numpy. ...
1
vote
1answer
46 views

Save data from plot to numpy array

I'm wondering how could I save the data content of a plot generated using Matplotlib to a Numpy array. As a example, suppose I generated a contour plot with the following code: import matplotlib ...
0
votes
1answer
14 views

Python contour plotting wrong values with plot_surface

I want to plot a surface in Matplotlib consisting of zeros everywhere, except for a rectangular region centered in (0, 0), with sides (Dx, Dy), consisting of ones - kind of like a table, if you wil; I ...
0
votes
1answer
21 views

Plotting from Pivot Table using Pandas

Let's say that I have the following pivot table (this is the one created in the documentation): In [8]: tuples = list(zip(*[['bar', 'bar', 'baz', 'baz', ...: 'foo', 'foo', 'qux', ...
0
votes
0answers
26 views

python error running matplotlib pyplot

I'm trying to run python code but it has trouble rendering a figure (it manages to plot the curve but fails to add axis and labels etc) and starts to produce a stream of errors. I'm using a windows 7 ...
0
votes
0answers
17 views

AssertionError in matplotlib's tight_layout()

I want to use matplotlib's tight_layout function on a figure with only one plot in it, but it is giving me an AssertionError. This is my code: (Note: updated w.r.t. original post) def ...
1
vote
0answers
14 views

Applying matplotlib rcParams to existing figure

I have a figure that I've unpickled from a file I generated earlier, but I'd like to use a different set of rcParams from those that were used when the figure was first created. I'd to update the ...
2
votes
1answer
28 views

Multiple picture background matplotlib

I need some help with a plot in python. I am takling an example from the documentation, in order to plot something like this: But my question now is if that would be possible to make a plot with ...
-1
votes
0answers
20 views

Animate grid of images in Python

I have some data stored in a set of numpy arrays with shape (t, nx, ny), where t is the time axis and nx, ny the x/y direction. So typically the resolution of the data is around (nx,ny) = (100, 100). ...
0
votes
1answer
16 views

Equal Height subplots in matplotlib

I have a script that generates two plots side by side of two aspects of the same quantity. It's fairly long, so this is only the relevant (I believe) portion. The left hand plot is called by the ...
1
vote
1answer
29 views

Zoomed Plot with Time Series

my task is simple: I have a time series ts (Euro Swiss Franc daily exchange rates between 2010 and 2014) to plot. In that plot I would like to highlight a certain time interval by zooming into it. ...
0
votes
0answers
44 views

Python 3.3 import matplotlib in Windows don't get along

Well I have Python 3.3 and I need matplotlib to function properly. I used the pip install matplotlib to install it. Have installed Six, dateutils, Scipy, numpy and even pyparsing for it to work. ...
1
vote
1answer
22 views

plotting a histogram of a numpy array by timestamp

My array has pairs of unix timestamps and values. [[ 1.40170249e+09 9.00000000e+01] [ 1.40170249e+09 9.10000000e+01] [ 1.40170249e+09 9.20000000e+01] ..., [ 1.41149703e+09 ...
1
vote
1answer
17 views

Python - Matplotlib, plot constant field

I would like to plot a constant field but it s not very beautiful... its value is zero and i want a colorbar between -1 and 1! I try that with : import numpy as np import numpy.ma as ma import ...
1
vote
1answer
12 views

Matplotlib histogram with collection bin for high values

I have an array with values, and I want to create a histogram of it. I am mainly interested in the low end numbers, and want to collect every number above 300 in one bin. This bin should have the same ...
0
votes
1answer
20 views

faceting in loop--assigning df.plot to axis

Building on data from this question on faceting through looping, I was wondering if it was possible to call a ax = df.plot(kind='bar') and assign the thus generated AxesSubplot object to a specific ...
3
votes
1answer
37 views

Queries about using NumPy Arrays to parse a CSV file

Q1: I have a strange issue which I can't seem to figure out. I'm parsing through a CSV File using the NumPy Module, where a portion of the CSV File (which contains 253 rows and 4 Columns) is shown ...
0
votes
0answers
17 views

How to speed up plt.savefig

I am calling plt.savefig like this: plt.savefig( 'c:/temp/figure.png', dpi=200 ) It takes about 0.6 seconds to run. And I am saving lots of charts. I run my scripts in interactive mode, and so ...
0
votes
1answer
9 views

FuncAnimation goes past the frames argument

I'm using the FuncAnimation package to make a movie of a gaussian wavepacket colliding with a potential barrier using the finite difference real-space method for solving the Schrodinger equation. The ...
0
votes
1answer
32 views

How can I exponentially scale the Y axis with matplotlib

I'm trying to create a matplotlib plot with an exponential(?) Y axis like the fake one I've mocked up below. For my data I want to spread the values out as they approach the max Y value. And I'd like ...
0
votes
0answers
18 views

Color outliers in scatterplot in matplotlib?

How would I color my outliers in a scatterplot, assuming i have a list of my outlier values? x_outliers = my_x_outliers y_outliers = my_y_outliers plt.scatter(x,y) plt.show() The default color ...
-1
votes
0answers
20 views

Cannot plot Dataframe

I am trying to plot this Dataframe but it kept on giving me errors for too many indices for array. I have looked at this for hours and I still could't figure it out. I suspect it has something to do ...
0
votes
1answer
28 views

Getting ValueError trying to plot a graph

I have an Arduino sketch that is putting time, temperature values into a loggedData.dat file. Just looking at the file using the Arduino serial monitor it looks fine. But when I try to plot a graph ...
1
vote
1answer
17 views

Inserting hyperlinks in pyplot interactive mode

I am creating a visualization of Twitter user locations as tweets come in, and so within my matplotlib code I have these three lines to create an interactive plot so the location markers can be ...
0
votes
0answers
17 views

Python 3d scatter plot X and Y axis error

def fun(mips_perf): y = list(xrange(0,10)) x = list(xrange(0, 8)) X, Y = np.meshgrid(x, y) temp = [] for x, y in zip(np.ravel(X), np.ravel(Y)): print x, y ...
-1
votes
0answers
33 views

matplotlib cannot plot histogram

I am starting to use Pandas, and having some problem plotting a field of a data frame I have 2 variables a and b, initialized as follow import matplotlib.pyplot as plot column_name = ...
0
votes
0answers
20 views

Plotting images (glyphs) as points in Python / matplotlib? [duplicate]

I have a set of points that I wish to plot in a scatterplot with images (glyphs) being plotted instead of points. How would I do this in Python/matplotlib?
1
vote
2answers
37 views

UnicodeDecodeError Matplotlib

I've been taking a YouTube course on how to build live-updating graphs in python. Initially, my program wouldn't run because I was missing important modules such as six or dateutil (I even installed ...
0
votes
0answers
31 views

Matplotlib Legend not showing up

I am trying this example: import matplotlib.patches as mpatches import matplotlib.pyplot as plt red_patch = mpatches.Patch(color='red', label='The red data') plt.legend(handles=[red_patch]) ...
0
votes
1answer
25 views

R's gridExtra in Python?

In R, we could plot each graph independently and then arrange all or some of the graphs easily by packages like gridExtra. For example, p1 <- ggplot(aes(x1,y1), data=df) + geom_point() p2 <- ...
0
votes
0answers
13 views

Label axis in chart with matplotlib [duplicate]

I have a chart that I am embedding into a html page that is generated with matplotlib. Everything is working as I was hoping it would but for some reason I cannot label the axis of the chart. Every ...
0
votes
0answers
27 views

Format datetime in seaborn faceted scatter plot

I am learning python pandas + matplotlib + seaborn plotting and data visualization from a "R Lattice" perspective. I am still getting my legs. Here is a basic question that I could not get to work ...
1
vote
1answer
25 views

Matplotlib / Seaborn barplot--strings in x axis

Maybe I am too used to R's wonderful ggplot-idiom when doing faceted charts (it takes numeric and string variables without protest) but the ideal way outside ggplot has certainly eluded me for some ...
1
vote
0answers
23 views

pylab not loading in emacs using ipython

I am using Emacs 24.3 in Windows 8. Using PowerShell, ipython loads pylab without issue: PS C:\Users\vince.forgetta> ipython --pylab Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC ...
0
votes
1answer
24 views

Plot matrix data with custom tick labels

C0 C5 C10 C15 C20 C25 C30 C35 C40 C45 C50 P0 47.943345 44.914156 42.376835 37.2786 39.362123 29.822127 ...
0
votes
1answer
20 views

matplotlib plot and then wait for raw input

I am trying to open a series of .png plots. I want to be able to view a plot on the screen and then get a prompt waiting for me to 'press enter'. On hitting enter, the next plot should be shown. I ...
2
votes
0answers
19 views

Plotting circular 3d bars (discs) using matplotlib

I am trying to make a graphical visualization of reaction barriers in a cyclic reaction (cf. citric acid cycle). I have barriers for two reaction paths closing the same reaction cycle through ...
1
vote
0answers
20 views

Add text on matplotlib graph in the loc = “best” fashion (not in data coordinate) [duplicate]

Is there a way to include text on a matplotlib graph in an "empty area" in the same fashion as loc ="best" for the legend location? Thanks!
-1
votes
2answers
53 views

How to assign colors to circles in matplotlib?

Somehow, assigning colors to circles works different from assigning colors in scatter plots: import numpy as np import matplotlib.pyplot as plt fig = plt.figure(figsize=(6,6)) # give plots a ...
0
votes
1answer
18 views

Plot histogram of a large number of integers using matplotlib

I am trying to plot the frequency of integers in a large list of number in a large range. More specifically: ints = np.random.random_integers(0,1440,15000) ints is a long list of integers with ...
0
votes
2answers
25 views

ImportError: No module names 'matplotlib' Python 3.3

I'm new to python (started 2 days ago) and I have gotten to the point where I want to use matplotlib for my program. I am using python 3.3 and after I have followed the instructions of installing ...
0
votes
1answer
20 views

Pandas plotting options causing error in iPython [duplicate]

I am trying some of the pandas plotting stuff shown here. However whenever I try to use the following command to set style options as suggested pd.options.display.mpl_style = 'default' I get the ...
0
votes
0answers
13 views

matplotlib: isometric views for 3d axes

I have a 3d axes in matplotlib: http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html The view can be set using the keywords elev and azim. I'd like to make it easy to access the isometric view ...