Tagged Questions
0
votes
0answers
7 views
strange matplotlib zorder behavior with legend and errorbar
I encountered a rather strange behavior of legend and the errorbar plot commands. I am using Python xy 2.7.3.1 with matplotlib 1.1.1
The code below examplifies the observed behavior:
import pylab as ...
1
vote
0answers
36 views
Inexplicable bug in matplolib and numpy : “IndexError: string index out of range”
I am currently dealing with an inexplicable bug in python+matplotlib+numpy. I'm under Ubuntu 13.04 x64 in a VirtualBox hosted by Windows 7 pro x64 and I use python 2.7 (installed from the Ubuntu ...
1
vote
1answer
23 views
Disable/skip show()
I am writing a script to generate a number of plots from data, each plot first being saved with plt.savefig(), then shown by plt.show().
In the first phase I want all plots to be shown and the script ...
2
votes
2answers
32 views
Show only the n'th ticklabel in a pandas boxplot
I am new to pandas and matplotlib, but not to Python. I have two questions; a primary and a secondary one.
Primary:
I have a pandas boxplot with FICO score on the x-axis and interest rate on the ...
0
votes
2answers
33 views
How to get figure size and fontsize right for PDFs exported from matplotlib?
I need to generate figures that fit into a particular width and use a particular font size, preferably without post-processing the pdf file.
On my system, the default GUI backend is 'TkAgg' and the ...
1
vote
1answer
19 views
several contour plots in the same figures
I have several 3d functions. I would like two plot the contour plots of them in the same figure to see the difference between them. I expect to see some crossings between contours of two functions. ...
0
votes
1answer
51 views
matplotlib: combine different figures and put them in a single subplot sharing a common legend
We have a code that creates figures from input.txt files. We need to combine 2 of these figures in a single subplot. The data from figure1 will be plotted in the left subplot and from figure2 in the ...
0
votes
1answer
26 views
How to avoid offset between pcolor()/imshow() and contour() overlays?
I would like to show a pseudocolor image (such as produced by pcolor, pcolormesh or imshow) overlayed with contourlines. It appears that those three plot functions can be one data point off. Here's an ...
1
vote
3answers
38 views
matplotlib 2d line line,=plot comma meaning
I'm walking through basic tutorials for matplotlib,
and the example code that I'm working on is:
import numpy as np
import matplotlib.pylab as plt
x=[1,2,3,4]
y=[5,6,7,8]
line, = ...
2
votes
1answer
42 views
Scale image in matplotlib without changing the axis
I have a GUI that displays a plot. I want to fit that plot to an existing image. I displayed the image under the plot using:
myaxe.plot(...)
myaxeimage = myaxe.imshow(myimage, axpect='auto', ...
1
vote
1answer
14 views
get QuadMesh object from Axes (or Figure)
I'm trying to make a plot where the various subplots all share a colorbar similar to this answer. The problem that I'm running into is that in my script, I'm calling a function which creates the ...
0
votes
0answers
25 views
APLpy incompatibility with matplotlib gridspec
I'm basically just trying to combine gridspec and APLpy.
But somehow the first plot in a row of subplots is always acting out, meaning, its size is not what it's supposed to be. The first image ...
0
votes
1answer
34 views
Matplotlib Axes3d, line intersect with 2d object
I am trying to do this but in 3d and using a 2d circle instead of a box.
I have a line starting between the two points [ (0,0,0), (3,4,5) ] and I want to see if it intersects through
circle = ...
1
vote
1answer
29 views
stop / start / pause in python matplotlib animation
I'm using FuncAnimation in matplotlib's animation module for some basic animation. This function perpetually loops through the animation. Is there a way by which I can pause and restart the animation ...
0
votes
1answer
24 views
Python matplotlib importError in command prompt but not in python shell [duplicate]
Disclaimer: I'm new to python and first post, so I apologize if this isn't formatted correctly or somewhere on the site. I haven't found anything thus far though.
I'm using Python 2.7 (32 bit) on ...