Tagged Questions
2
votes
1answer
25 views
Python plot log scale set xticks?
I am trying to plot between in Log scale but there are problems ;
from pylab import *
import matplotlib.pyplot as pyplot
Ds = pow(10,5)
D = np.linspace(0, pow(10,6), 6)
alpha=1.44
beta=0.44
...
1
vote
1answer
28 views
Add axis label to plot in matplotlib, by passing them as arguments to plot()
How to set the x-label and y-label in a matplotlib-plot passing them as an parameter to the plot() function.
Basically I want to do something like this:
def plot_something(data, plot_conf):
...
1
vote
1answer
26 views
plotting the old data(for an earlier plot) again while making a new plot
I have CSV file with entries like following
id, A, B #first line.
1, 1 2 3 4 5 6 7 8(and many more), 0 9 8 7 6 5 4 3 2(and many more) #line 1
...
...
(many more lines like this)
Here is the ...
1
vote
1answer
22 views
matplotlib won't plot line of same x values
I'm having some trouble getting matplotlib to plot a graph if my Y values are all the same.
I am plotting a graph of temperature against time, and I have found that if my temperatures are all the ...
1
vote
0answers
36 views
Problems with matplotlib
I'm trying to make a graph using matplotlib.pyplot and subprocess, but I get the following error:
Traceback (most recent call last):
File "subprocess.py", line 2, in <module>
import ...
1
vote
1answer
18 views
Less frequent ticks on the x axis in Pyplot
In a python plot, I have used xticks to tell my plot what values to put on the xaxis:
plt.xticks(np.arange(grid_resid.shape[1]),xp_int,rotation="vertical")
Both (np.arange(grid_resid.shape[1]) and ...
0
votes
1answer
22 views
changing the xticks on a python plot
I think I'm doing something silly but I just can't see it.
In Python, I have an imshow plot, and I want to change the values on the x axis.
plt.xticks=(np.arange(grid_resid.shape[1]),xp)
...
-1
votes
1answer
56 views
How to use matplotlib in my Python Program [closed]
Have a program written in Python. Matplotlib need to draw graphics using the program. "dalgafonksiyonu" and "x" by using the values have to create the chart. Single "for" and "while" loops, I do not ...
1
vote
1answer
31 views
Plotting Relative Frequency vs. Absolute on a matplotlib histogram
I am aware of some similar questions but I have tried the code on them and it does not work in my environment. So I have a large list of data (floating point numbers) and I want to plot it as a ...
2
votes
1answer
43 views
Matplotlib - Hide error bars' label & points in legend
Here's an example of what I mean:
import matplotlib.pyplot as plt
xdata = [5, 10, 15, 20, 25, 30, 35, 40]
ydata = [1, 3, 5, 7, 9, 11, 13, 15]
yerr_dat = 0.5
plt.figure()
plt.plot(xdata, ydata, ...
1
vote
1answer
21 views
matplotlib: colour bar resizing image?
I'm assuming I have a really simple question, which has been driving me insane for the past hour. So, I am trying to produce a contour plot with the following axis lengths x=37,y=614. I can produce a ...
0
votes
0answers
31 views
When I close Python, the DOS window does not close. How do I find out what is hanging?
When I close my Python application, the DOS window does not close. How do I find out what is hanging ?? I have a main class that invokes children windows upon request. If I close the main ...
0
votes
1answer
26 views
Title rows and columns of matplotlib subplot layout (replacing subplots with titles)
Suppose I have a 3x3 array of 9 subplots of identical sizes. Is it possible to make a 4x4 figure and replace the top and left-most subplots with large titles?
I know it's theoretically possible to ...
1
vote
1answer
22 views
How to go from a contour to an image mask in with Matplotlib
If I plot a 2D array and contour it, I can get the access to the segmentation map, via cs = plt.contour(...); cs.allsegs but it's parameterized as a line. I'd like a segmap boolean mask of what's ...
1
vote
0answers
30 views
How to translate this python pylot bar plot to gnuplot code [closed]
I need draw a bar plot with 200k data points. I have matplotlib.plot code, which runs well for small data set, but too slow for 200k points.
Can anyone help me translate this python code to gnuplot? ...