How would you plot f(cβ)?enter image description here
I'm getting straight lines instead of curves.
Related
Unsure if a polar plot is exactly what I should be using to accomplish this. But, essentially, I have multiple time-series (just amplitude vs. time), each corresponding to a different angle in degrees. For example, I have ampl. vs time at 5 degrees, 10 degrees, 15, etc. For angles 0 to 360 at increments of 5, I would like to plot each time series on a circular, or polar plot.
I am attempting to do this with matplotlib and the projection='polar' flag on. There are 8000 amplitude values for each time-series. They are in a numpy array called data. To test plotting the time-series associated with 5-degrees, I made a numpy array of 8000 5's with 5*np.ones(8000) so that they are the same length.
thetas=np.arange(0,365,5) #make 0 to 360 degrees at increments of 5
ax=plt.subplot(111,projection='polar') #turn on polar projection
ax.plot(5*np.ones(8000),data)
plt.show()
I get:
You can see these data are not plotting along the 5-degree line, nor does it look like any amplitudes are showing (there should be squiggles up and down varying with time). Thank you in advance!
EDIT: Example of what I want (each color line is a different time-series)
I have a dataset that has x,y,z columns. I have created surface plot using gnuplot and contour on top and bottom as see below. Here is the dataset: https://www.dropbox.com/s/8evj5da7yco1xmo/datx.dat?dl=0
Below is the plot from the data in the link.
I'm trying to create a contour plot like the one below with contours on the side, how do I accomplish this in gnuplot?
Here is the solution http://gnuplot-tricks.blogspot.com/2010/ but I'm unable to replicate it for my dataset.
I have a shapefile from GADM that has a lot of polygons showing the states and provinces of Colombia, but I'm only interested in one of them. Is it possible to extract this one polygon and plot it afterwards using python3?
I am trying to read an input image using octave and plot its RGB values as a 3 dimension plot.
I am reading image using
im = imread('image')
How can I plot this?
Also, is it possible to plot a histogram of all the 3 layers?
Thanks
As already stated, the Octave API doc gives you an MxNx3 matrix data set of your image.
The R/G/B channels are the last dimensions of your im matrix. hist needs 1d input, so we'll need to reshape it:
hist(reshape(im(:,:,1),1,[])) # red
hist(reshape(im(:,:,2),1,[])) # green
hist(reshape(im(:,:,3),1,[])) # blue
About the 3D plot: do you mean a 3D scatter plot? Then Octave's scatter3 might help you.
I thought this would be simple to google, but I have not been able to find an answer yet:
I have the simple script:
plot [3:16.99][0.8:]"alltables.txt" using 1:2 smooth uniq with points
Where the alltables.txt is a 2-column list of numbers. The smooth uniq operation plots the moving average of my data. My question is how can I find out the coordinates of these points? And beyond that how can I label them on the plot with their coordinates?
If your gnuplot version is recent enough, you should be able to
plot [3:16.99][0.8:]"alltables.txt" using 1:2:2 smooth uniq with labels