Tagged Questions
1
vote
2answers
57 views
matplotlib 3d plot with changing labels
So I have a 3d live-updating graph! it only shows one point at a time so I can easily track the motion of the point! But here is the problem:
No matter what I seem to do, the point is always placed ...
1
vote
2answers
95 views
Drawing average line in histogram (matplotlib)
I am drawing a histogram using matplotlib in python, and would like to draw a line representing the average of the dataset, overlaid on the histogram as a dotted line (or maybe some other color would ...
0
votes
0answers
56 views
matplotlib remove automatic scaling of axis by addition
I have a problem with the (automatic) scaling of the x-axis in the following plot.
I don't want the +1.599e-6 because it is just very difficult to read.
Does anyone know how to remove that?
...
1
vote
2answers
226 views
How to make X axis in matplotlib/pylab to NOT sort automatically the values?
Whenever I plot, the X axis sorts automatically (for example, if i enter values 3, 2, 4, it will automatically sort the X axis from smaller to larger.
How can I do it so the axis remains with the ...
1
vote
1answer
137 views
python matplotlib changing default axis for image
I am in an interesting situation.
I have the diagram's image with axis
So when I try to plot this diagram wiht the next code:
plt.figure("Ti Zr")
ax = plt.subplot(111)
im = ...
2
votes
1answer
97 views
Matplotlib: coloring axis/tick labels
How would one color y-axis label and tick labels in red?
So for example the "y-label" and values 0 through 40, to be colored in red.
import matplotlib.pyplot as plt
import numpy as np
x = ...
3
votes
2answers
631 views
Matplotlib axis labels: how to find out where they will be located?
I have written a routine to draw vertical cross sections from atmospheric model output. An example is shown below. What I would like to do, is to show two vertical axes: on the left I display presure ...
0
votes
1answer
57 views
Stretching axis ticks to fit compressed image
I have a PyQt4 Application in which I am representing a 16bit grayscale image using matplotlib. The image I'm representing are quite large. Due to memory limitations I'm unfortunately not able to ...
4
votes
2answers
117 views
Matplotlib: Is it possible to create an new axis with a given y-offset, without creating subplot?
With the help of sankey-toolbox in Matplotlib, we can plot sankey-diagrams automaticly: The position of a sankey-object is automaticly calculated based on the position of its prior-object and cannot ...
1
vote
1answer
45 views
How can I change the font size of tixks of axes object in matplotlib
I have a figure I added subfigure to (inset). I have used:
fig = plt.figure()
ax = fig.add_subplot(111)
subA = fig.add_axes([0.4,0.14,0.2,0.2])
I now want to change the xtick font size of the ...
4
votes
3answers
613 views
matplotlib; fractional powers of ten; scientific notation
I deal with simulation data and have been using matplotlib a lot lately and have been encountering something (a bug?) that's annoying.
I have been allowing matplotlib to automatically set the tick ...
2
votes
2answers
195 views
python/matplotlib - Specifying Parasite Axis Length
I am plotting data from several sources and need multiple x axes, preferably offset such as those seen in the link. I would very much like my x axes to have variable length, allowing me to put many ...
2
votes
1answer
166 views
matplotlib: turn off z-axis only in 3-d plot
I have some mpl_toolkits.mplot3d surface plots that I am viewing from different angles. When viewed from directly above (elev = 90, azim = 90) the text of the z-axis is all piled up on top of itself.
...
0
votes
1answer
780 views
Defining bin width/x-axis scale in Matplotlib histogram
I am generating histograms with matplotlib.
I need the bins to be of unequal width as I'm mostly interested in the lowest bins.
Right now I'm doing this:
plt.hist(hits_array, bins = (range(0,50,10) ...
3
votes
1answer
213 views
How to remove relative shift in matplotlib axis
When I try to do a plot against a range with big enough numbers I get an axis with relative shift for all the ticks. For example:
plot([1000, 1001, 1002], [1, 2, 3])
I get these ticks on axis of ...