I am using matlab for cluster visualization. I want to somehow get the color of my current cluster center fill in the plot and draw line of same color to cluster members. How can I get the color?
1) Besides the negative frequencies, which is the minimum frequency provided by the FFT function? Is it zero?
2) If it is zero how do we plot zero on a logarithmic scale?
3) The result is always symmetrical? Or it just appears to be symmetrical?
4) If I use abs(fft(y)) to compare 2 signals, may I lose some accuracy?
I have the second order differential equation
d^2(y(t))/dt^2+ B1*d(y(t))/dt+ c1*y(t)=A1*x(t)
t is in seconds and is greater than 0.
A1, B1, C1 are constants that equal:
A1= 3.8469x10^6
B1= 325.6907
C1= 3.8469x10^6
This system is linear, time-invariant, and casual. The system is called H1.
I want to use Matlab to compute and plot the impulse response function h1(t) and the unit step response function g1(t) of this system.
Having installed canvas from here http://www.rforge.net/canvas/files/
I try to plot:
> canvas('test.js')
> qplot(rnorm(100), geom='histogram')
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
Error in grid.Call.graphics("L_setviewport", pvp, TRUE) :
Non-finite location and/or size for viewport
>
The pyplot plot_date function expects pairs of dates and values to be plotted with a certain line style. Is there a recommended approach to plot multiple values or interval data against date/time values?
Hello,
in my app I have 49 points with x,y and I wnat to display them on the screen. I've seen a lot of library that can help me (core plot, s7graphview, etc.). But since I'm doing very basic stuff (just draw points), what is the simplest way do to that ?
Thanks !
A project that involves image processing, i.e. to calculate the angular shift of the same image when shifted by a medium of certain Refractive Index. We have to build an app that correlates the 2 images (phase/2D correlation?) and then plot using Chaco and Mayavi (2 libraries in Python).
Is there any other existing template software (FOSS) that we can base our app on, or use it as a reference?
0
Hi, i am using Core-plot . but when i declare the normal UIView as CPLayerHostingView,how can i handle drawRect of that view , i cant give another custom UIview name and write code in drawRect of that view?please any help to handle drawRect of CPLayerHostingView?
I'm using the newest chart control from silverlight toolkit to plot some data. For small cases it works ok, but for bigger samples the X axis labels overlap. It would be no problem if the chart would simply omit some of the values or I could specify to just show every 10th of them ...
I couldn't find any properties providing this behavior. Any ideas?
hello.
my m file is:
x=0:0.01:2*pi;
y=sin(x);
plot(x,y)
I want build this program by .exe format.
i want run this .exe in a computer that dosen't has matlab.
can you help me?
Is it possible to have a datetime scale not consider weekends as part of the time continuum? For instance, if I am plotting stock prices over a 2 week period with a line geometry, I do not want to plot a 2 day period of flattness during the weekend. I would like friday to connect with Monday.
I'm not sure if that's the right terminology.
I've entered some data into R, and I've put a smoothingSpline through it using the following command.
smoothingSpline = smooth.spline(year, rate, spar=0.35)
plot(x,y)
lines(smoothingSpline)
Now I'd like to measure some limits (or where the curve is at a given y point), and maybe to some predictive analysis on points that extend beyond the graph.
Are there commands in R for doing this?
How can I add a newline to a plot's label (e.g. xlabel or ylabel) in Matplotlib? For example,
plt.bar([1, 2], [4, 5])
plt.xlabel("My x label")
plt.ylabel(r"My long label with $\Sigma_{C}$ math \n continues here")
Ideally i'd like the y-labeled to be centered too. Is there a way to do this? It's important that the label have both tex (enclosed in '$') and the newline.
thanks.
Is there a way to determine if a function generates a figure in R?
For example, if we have functions f and g
f = function(x,y){plot(x,y)}
g = function(x,y){mean(x*y)}
I would like able to run
createFigure(f(x,y))#Returns TRUE
createFigure(g(x,y))#Returns FALSE
Thanks
I've been using matplotlib in a Python project. It is great.
I have now to plot data in a C++ project. Is anyone aware of a plotting library in C or C++?
Note that I cannot accept GPL licensed libraries.
A project that involves image processing, i.e. to calculate the angular shift of the same image when shifted by a medium of certain Refractive Index. We have to build an app that correlates the 2 images (phase/2D correlation?) and then plot using Chaco and Mayavi (2 libraries in Python).
Is there any other existing template software (FOSS) that we can base our app on, or use it as a reference?
I'm sure this is an incredibly simple question but I've recently started using Mathematica so it's all new to me. How do you scale the y axis? I try the following but it won't compile.
Plot[y = {Exp[-(x^2+3x+2)]}, {x, 0, 5}, {y, 0, 1}]
I am looking for a GUI python module that is best suited for the following job:
I am trying to plot a graph with many columns (perhaps hundreds), each column representing an individual. The user should be able to drag the columns around and drop them onto different columns to switch the two. Also, there are going to be additional dots drawn on the columns and by hovering over those dots, the user should see the values corresponding to those dots. What is the best way to approach this?
So, I Have the following very simple map.r file.
I'm trying to have the user type "click" in interactive mode and then have the function .
Since it's a function, the user has to type "click()" how can I make it so that they only have to the word (w/o parentheses), and then have that function do something with the img.
So the user types:
mydist("image.pnm")
click
//And then the function click does what it's supposed to
mydist <- function(mapfile) {
img <- read.pnm(mapfile)
plot(img)
}
click <- function() {
//Prompt user to click on img
}
Hi
I have this table:
Reason|Area_Code|Id
x dig 1
x dig 2
y dig 3
h util 4
x dig 5
I'm trying for a SQL that returns:
Reason|Amount of distinct Reason|Area_code
x 3 dig
y 1 dig
h 1 util
I will use this result to plot a chart. I don´t have any idea on how this SQL can be done. Could you help me?
Hi I have this table:
Reason|Area_Code|Id
x dig 1
x dig 2
y dig 3
h util 4
x dig 5
I'm trying a sql that returns:
Reason|Amount of distinct Reason|Area_code
x 3 dig
y 1 dig
h 1 util
I will use this result to plot a chart. I don´t have any ideia on how this SQL can be. Could you help me?
I'm building chart in Action Script 3.0 and need to set background color of the area where chart is drawn. I found solutions how to set background color for all chart, but it's not exactly what I need: I need to color chart part where plot is drawn
All are from this post.
What does these statement mean:
error(nargchk(5, 6, nargin));
plot(p(:,1), p(:,2), '.-'), axis equal
And what's this kinda syntax which I haven't quite often seen:
if nargin<6, steps = 36; end
Sorry if this question is obvious for some of you.
I know we can link to the existing Goggle Maps app, but I would like to have an app that does not exit and provides the direction within. I intend using GTFS for public transit.
On the other hand, would it be possible to plot a line inside the iPhone app the results as returned by Google Transit? (say, I send it the arrival and departure addresses)
Thank you so much!