You would think that the two snippets below produce the same result. They do not. Number 1, this is the intended result where only axis values in the matrix are log scaled ++++++++++++++++++++++++ #Set ranges xmin=0.01 xmax=100 ymin=0.001 ymax=10 set xrange [log10(xmin):log10(xmax)] set yrange [log10(ymin):log10(ymax)] set xtics ("0.01" -2,"0.1" -1,"1" 0, "10" 1, "100" 2) set ytics ("0.001" -3,"0.01" -2,"0.1" -1, "1" 0, "10" 1) #Plot plot 'foo.bin' binary nonuniform matrix using (log10(column(1))):(log10(column(2))):3 with image +++++++++++++++++++++++ Number 2, is the obvious solution where axis values and the column/row index values are log scaled +++++++++++++++++++++++ #Set ranges xmin=0.01 xmax=100 ymin=0.001 ymax=10 set xrange [xmin:xmax] set yrange [ymin:ymax] set logscale xy plot 'foo.bin' binary nonuniform matrix using 1:2:3 with image ++++++++++++++++++++++++ I don't know why gnuplot does the log scaling of indexes too. Is there a reason for this? The second solution is much cleaner but gives a distorted display. That display even contains faint (blanked) lines at each column/row in the matrix. Alex van der Spek

0 |

3/19/2012 7:50:37 PM

Hi all, Does Matlab have function to plot on a matrix(an imaginary figure/axes)? In Visual C++, I can create a memory bitmap, and then select it into Device context, then all subsequent drawings/plots are conducted onto this bitmap, it can then be dumped into a bitmap image file easily later... Now in Matlab, I want to do some lines, objects, shapes, drawings on a matrix, instead of plotting directly to an figure/axes window, ... because I want to save that matrix for other use later... How can I do that? (the getframe function does not give precise control of the matrix grid points.....

Hi all, I’m creating a program which solves nonlinear partial differential equations with Finite Different Method and the lack of routine I have with Matlab makes it very difficult. I have a temperature matrix with the size of (NxM). If I use ‘mesh’ or ‘surf’ to plot I get the numbers of the rows for x axis and the numbers of the columns of the matrix for y axis. I’ll rather prefer time (0-100 sec) and length(0-1 m) but I don’t know how to change. Thanks in advance… Prediger <prediger@freemail.hu> wrote in message <579053711.42532.1263046134553.JavaMail.root@gallium.mathfor...

hi all, I am a newbie so forgive me if its a dumb question but i wish to plot a 3d surface plot of instrument readings such that X and Y represents the position [latitude and longitude] of the instruments and Z represents the reading of the instrument. these X and Y will be unique for each and every instrument and once set they remain constant. once this is achieved, the Z axis would change every and should be easily varied. Im seriously confused. :| please help On Jan 1, 11:28=A0am, "aakash raj" <a.krish....@gmail.com> wrote: > hi all, > I am a newbie so forgive...

Hi, I have plotted a row (70) from a matrix 76*75 R=plot (A(70,:)) On the plot I can see that the x-axis is from 0 to 76. Do you know how i can change the x-axis? I need multiply all the x-axis by 0.2. thanks On 11/20/2012 12:03 PM, Arantxa wrote: > Hi, > I have plotted a row (70) from a matrix 76*75 > > R=plot (A(70,:)) > > On the plot I can see that the x-axis is from 0 to 76. > > Do you know how i can change the x-axis? I need multiply all the x-axis > by 0.2. x=0:0.2:0.2*(size(A,2)-1); plot(x,A(70,:)) Or you can retrieve the &#...

Hi,, How do i make the y-axis in gnuplot show in terms of percentage.. i.e. 2% 4% 6% 8%...... On Tuesday, December 2, 2014 10:07:04 AM UTC, naobi wrote: > Hi,, > How do i make the y-axis in gnuplot show in terms of percentage.. > i.e. 2% 4% 6% 8%...... > If it's a C issue, it might be that you need to escape the %sign by writing %%. That's quite a common C convention. But if it's something to do with how to call GnuPlot, we wouldn't know here. There are thousands of libraries written in C, and we can't offer expertise on...

I have this matrix 8*8. Here's the matrix I want to plot: matrix=[1 2 3 4 5 10 11 20 2 4 3 1 5 6 7 9 13 4 5 8 7 9 2 1 9 11 3 2 1 6 7 9 8 4 12 5 4 3 2 1 7 9 0 14 9 0 1 3 4 6 2 3 15 6 0 2 3 4 6 9 3 15 7 1 3 2 4 6 9 8 15] How can I plot these matrix in 3D? Can anyone help me please? I know which functions are used for 3D plot in matlab. I begin in command window with defining my matrix: >>matrix=[1 2 3 4 5 10 11 20 2 4 3 1 5 6 7 9 13 4 5 8 7 9 2 1 9 11 3 2 1 ...

Hi all, I am wondering if you can provide some solutions. How to draw two tendencies plot for the left Y axis and 1 bar plot for the right axis? Thank you very much. Michael "Kuo-Hsien" <mchangks@hotmail.com> wrote in message news:i7vgc8$33h$1@fred.mathworks.com... > Hi all, > > I am wondering if you can provide some solutions. How to draw two > tendencies plot for the left Y axis and 1 bar plot for the right axis? Use PLOTYY with six input arguments, the fifth being the handle to the function that draws the "two tendencies" plot and the sec...

I am trying to supplement my 2d plots by adding some arrows near the axis lables, along with some more fancy lables themselves. At first I tried to use some primitive graphics objects (lines, polygons, etc) to draw the arrows, along with the 'text' command to specify multiple lables, but these cannot be used outside the plot area. Is there any way to add graphics objects in this space? Here's a little ASCII of what I'm looking for: ***** __________________________________________________ | . . | P | ...

I have defined my x and y axes and I am attempting to specify data for my z matrix entries which I want to turn into a contour plot. I am having difficulties getting this contour to work. Any suggestions? Thanks. RT wrote: > > > I have defined my x and y axes and I am attempting to specify data > for my z matrix entries which I want to turn into a contour plot. > I > am having difficulties getting this contour to work. Any > suggestions? > > Thanks. My suggestion is you might give us just a teeny, tiny hint as to what is your problem. Without any hint from you, my...

I'm plotting a 20x20 (or larger) matrix that consists only of 0s and 1s. I'm using the 'spy' function (sparsity map) that plots a point for the 1s and nothing for the 0s. The x-axis should be from 0-2 (i.e. there is a point every 0.1) and the y-axis from -1 to 1 (ditto). Currently, the labels are just showing as 0-20 and 0-20 (i.e. just the numbers of the elements within the matrix). How do I label the axes with values I choose? Seems like it shouldn't be as difficult as I'm finding it. ;-) The 'axis' command allows me to move the actual axis ...

I need my program to open DIAdem files and plot the data on screen. I downl= oaded the DIAdem Connectivity tools and installed them, so I am now able to= write and read DIAdem files with no problems, but when I want to plot the = data read from one or the files against channel 1 (time) I am only able to = show the graphic of one of the channels and not all the channels I have sel= ected. <br>ow can I plot multiple channels against Ch 1?<br>I have tried to= do this in many ways, and I think there must be an easy way, but I just ca= n=B4t find it Thank you for your help, this is t...

Hello to all! I'm trying to do a Hertzsprung-Russell diagram like this one: http://en.wikipedia.org/wiki/File:HRDiagram.png If you see, the temperature (top x axis) is not a linear function of the color (bottom x axis), and i cant find a way to do this. My code: % to read the stars data: filename = 'Hipparcos_stars2.xlsx'; sheet1 = 1; xHRcolor = 'G2:G19934'; yHRmag = 'I2:I19934'; xHRtemp = 'J2:J19934'; yHRlum = 'K2:K19934'; HRx_c = xlsread(filename, sheet1, xHRcolor); HRy_m = xlsread(filename, sheet1, yHRmag); HRx_t = 10.^(3.9396...

Hello, I've just "discovered" this weirdness: IDL> x=plot(lindgen(100)-50,/nodata) IDL> xi=plot(x.xrange,[0,0],linestyle='dash',/overplot) On my system, the second command with the /OVERPLOT redefines the yrange of the resulting plot. The documentation of PLOT, /NODATA states: "Set this property to 1 to create the graphic, but without any data attached to it. The axes and title (if present) are also created and displayed." The documentation of PLOT, /OVERPLOT states: "Set this property to 1 (one) to place the graphic on top of the e...

Hi, is there a way in matlab to avoid the axis being resized when plotting a plot on top of a plot, where the second plot has a smaller axis than the first? I have a collection of FINTS with different date series, and want to plot all in the same chart. However, the ORDER of the plot becomes important because the plot resizes the axis upon each call. Ideally I would like the plot to show all series, using whichever axis is largest (to show the maximum amount of information). Here is an example: %% test issue with plot re-writing axis a=datenum('2010-05-03'); b=datenum('2011-0...

Dear all, I've a problem following the example on "Using Multiple X- and Y-Axes: Example -- Double Axis Graphs" in the MATLAB Graphics manual. The following is my code: clear all close all hidden data1=dlmread('6.csv',','); data2=dlmread('0.csv',','); data3=dlmread('7.csv',','); data4=dlmread('1.csv',','); [m,n]=size(data1); k=1; for j=1:m if (data1(j,1)>=0) data(k,1)=data1(j,1); data(k,2)=data1(j,2); k=k+1; end end clear data1; k=1; for j=1:m if (data2(j,1)>=0) d...

Hello everyone! I have a little problem. I plot a matrix data and then I want to update 'xdata' and 'ydata' by using 'set'. This code explains my problem: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% x = [1 1 2 2 1; 5 5 6 6 5]; y = [1 2 2 1 1; 5 6 6 5 5]; h = plot(x',y'); %I plot some (i this example two) rectangles. axis([0 7 0 7]); x = x+1; %I add a constant to make an illusion of movement. y = y+1; %As above. set(h,'xdata',x','ydata',y') % <- error %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% When I use 'set'...

Hallo, I need to draw a straight line between 2 points (in an image). I can do it with line function, but i want to read the plot (i.e obtain a matrix). Or in other words.... i need the coordinates of all the points (pixels) on the line (drawn between two specified points) Could anyone plz help me??? ...

Hello, How to plot two set of data with same y-axis but different x-axis. One dataset to the left and one dataset to the right of the y-axis. Tobias Gram wrote: > Hello, > > How to plot two set of data with same y-axis but different x-axis. > > One dataset to the left and one dataset to the right of the y-axis. Look for the example of "Double Axis Graphs" in the online document... -- dpb <none@non.net> wrote in message <iarovc$5a3$1@news.eternal-september.org>... > Tobias Gram wrote: > > Hello, > > > > How to...

Hello, How to plot two set of data with same y-axis but different x-axis. One dataset to the left and one dataset to the right of the y-axis. ...

All, I have 2 functions that share the same domain but have different ranges e.g. f1(x) = function that outputs magnetic field (gauss) f2(x) = function that outputs size (meters) .. I've seen graphs where the left vertical axis is for one function, and the right vertical axis is for the other. The domain (horizontal) axis is the same for both. Is there a nice way to do this in Matlab? Thanks! On Jun 1, 3:41=A0pm, olsonaj <Abraham.Ol...@gmail.com> wrote: > All, > > I have 2 functions that share the same domain but have different > ranges > > e.g. > > f1(...

Hi, So, I have a plot, and depending on the audience, I either have to plot it with the x-axis on or the x-axis off. Is there a quick way to plot the plot 2 times, once with the x-axis on, and once with the x- axis off (rather than running my plot routine a second time, or copying & pasting the code of my plot routine twice)? Thanks, Rob Rob wrote: > Hi, > > So, I have a plot, and depending on the audience, I either have to > plot it with the x-axis on or the x-axis off. Is there a quick way to > plot the plot 2 times, once with the x-axis on, and once with the x- >...

Hey I want to plot a series of polar plots and trun them into a movie! The problem I have is that the axis keep changing range and the typical plot commands for a fixed axis dont seem to take effet! can anyone help? cheers greg "g heath" <Gregory_Heath@mathworks.com> wrote in message <fihk5n$m06$1@fred.mathworks.com>... > Hey > > I want to plot a series of polar plots and trun them into a > movie! > > The problem I have is that the axis keep changing range and > the typical plot commands for a fixed axis dont seem to take > effet! > >...

I'm wondering how too add an extra to a quiver plot. Currently i'm plotting the projectile of a partile using a quiver plot, but I want to put the top X-Axis at a time scale. I've followed what is recommended here: http://www.mathworks.com/help/techdoc/creating_plots/f1-11215.html I've modified the code so that instead of a line plot i've used a quiver plot, then it goes all messy as the current graph disspears or the new x axis seems to be on top of old x-axis. Here's what my current code looks like: h = quiver(x(1:10:hs),z(1:10:hs),u(1:10:hs),w(1:10:hs),scale);...

Hi, Take this example: x = [500 750 1000 10^30]; y = [151 146 143 134]; plot(x,y,'o-') This plot is useless. The first 3 values are "on top of each other". How do I plot all 4 values with a discontinous/broken x-axis such that only the point (x,y)=(10^30,134) is shown as a value that this function/data set converges to (shown to the right as the last x-value)? I hope somebody knows a solution. I tried: set(gca,'XTickLabel',test) But that only changes the numbers on the x-axis... Is there a possible solution? Perhaps the line from points (x,y)=(1000,143) -&g...

I have put a little part of my code figure plot(Clip_M_EF(New_M_index(:,1),1),'xg') axis off hold on plot(New_M_EF_MS,'*r') hold on plot(Clip_M_EF_GS(New_M_index(:,1),1),'+b') You see, because I have set axis mode into "off" the following plots cannot be plotted into any axis. But my teacher wants me to be able to plot them in the axis despite having them the axis in off mode. He says, "Please modify your code in a way that axes, titles, are displayed irrespective of the display mode matlab executed earlier.". I have wasted a lot of time ...

This article is about the 1999 film. For the franchise it initiated, see The Matrix (franchise) . For other uses, see The Matrix (disambiguation) ...

... a grenade, it bounces off the walls and skitters to a halt just so . Havok has also made its way to Hollywood: Big-time movies like "The Matrix" ...

... and Anthem Bank & Trust, Plaquemine, LA ($136 million). With it being the end of the third quarter, we bring an update on the transition matrix. ...

The broadcast will use a record number of cameras to capture angles that put viewers in the middle of the action.

From the moment that the Republican presidential contenders took the stage —or, more accurately , attempted to take the stage —for their final ...

20th Century Fox Deadpool topped the weekend box office for its third (and final) frame. The Ryan Reynolds superhero comic book movie earned ...

Is our universe a two-dimensional hologram? It sounds like science fiction straight from “The Matrix,” but scientists are checking out the hypothesis ...

Remember that mind-blowing scene in The Matrix when Neo had jiu-jitsu and kung fu uploaded directly into his brain? Researchers from HRL Laboratories ...

The Walking Dead comic book is a relative rarity in the world of modern, mainstream comic, as each issue is in greyscale, rather than the normal ...

... is also something of an Architect, and like all Architects he only wants what is best for the system he created. In this case, it’s a Matrix ...

Resources last updated: 3/2/2016 6:08:17 AM