topic Re: Normalizing x,y axis of a Contour Plot in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294627#M114946
<HTML><HEAD></HEAD><BODY><P>One additional comment.... I need the Matrix "One(x,y)" to be Normalized such that "One(m,n) such that m and n range from 0 to 1 and -1 to 1.</P></BODY></HTML>Fri, 24 May 2013 03:27:33 GMTthiirane2013-05-24T03:27:33ZNormalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294626#M114945
Hello Experts,I have a request that hopefully is not difficult. I have a matrix OneWhen I plot One the x and y axis is defined by the indices of the Matrix OneI need the X and Y axis to be normalized from 0 to 1 and from -1 to 1Can you help?ThanksRussThu, 03 May 2018 17:15:20 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294626#M114945thiirane2018-05-03T17:15:20ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294627#M114946
<HTML><HEAD></HEAD><BODY><P>One additional comment.... I need the Matrix "One(x,y)" to be Normalized such that "One(m,n) such that m and n range from 0 to 1 and -1 to 1.</P></BODY></HTML>Fri, 24 May 2013 03:27:33 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294627#M114946thiirane2013-05-24T03:27:33ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294628#M114947
<HTML><HEAD></HEAD><BODY><P>if you want it to normalize, how do you want the point between [0,1] and [-1,1] looks like? is it a contiuous contour or you just want a discret point (1) in every corner and zero everywhere? Do you want it to change linearly? exponentially? or some other way? You need to be more specific. </P></BODY></HTML>Fri, 24 May 2013 03:53:00 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294628#M114947ptc-47354782013-05-24T03:53:00ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294629#M114948
<HTML><HEAD></HEAD><BODY><P>Hi Henry,</P><P></P><P>Thanks for helping...</P><P></P><P>Rather than having a Matrix whose x and y coordinates are defined by its indices, I need the Matrix to have x and y coordinates defined by the mapping from 0 to 1 and -1 to 1. </P><P></P><P>This is an exercise in the creation of a fractal. I need to have to spatial distribution to be mapped to -1 to 1 See the bottom of the attached.</P></BODY></HTML>Fri, 24 May 2013 04:54:26 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294629#M114948thiirane2013-05-24T04:54:26ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294630#M114949
<HTML><HEAD></HEAD><BODY><P>Would the two approches in the attached file help?</P><P>The first is to use with a 3D contour plot. As a mtrix can't have non integer indices I created a function f(Q,x,y) which uses the table as a lookup.</P><P>The second is for use in a normal 2D plot. A matrix is generated where the first colum represent the normalized x-, and the second the normalized y-values of all those elements in the original matrix with a value of 1.</P><P></P><P>Another approach would be to create a matrix which represents a bitmap, as was shown in this forum some times with different fractals. This approach would be extremely useful for colorful fractals like a mandelbrot, as you would have more control over color mapping, etc.</P></BODY></HTML>Fri, 24 May 2013 09:08:18 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294630#M114949Werner_E2013-05-24T09:08:18ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294631#M114950
<HTML><HEAD></HEAD><BODY><P>The 3D plot is using the row and column indices because you haven't given it any x and y values. You need to create a matrix of x values and a matrix of y values. Put the x, y, and z values in a nested matrix, and drop that into the plot. see the attached.</P></BODY></HTML>Fri, 24 May 2013 14:14:25 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294631#M114950RichardJ2013-05-24T14:14:25ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294632#M114951
<HTML><HEAD></HEAD><BODY><P>Thank you Richard. That's is what I did not know how to do. Sure appreciate your help. Thank you also to the other contributors.</P></BODY></HTML>Fri, 24 May 2013 15:44:41 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294632#M114951thiirane2013-05-24T15:44:41ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294633#M114952
<HTML><HEAD></HEAD><BODY><P>Richard,</P><P></P><P>I have a follow-on question. I need to reference points in the transformed space. I see that when I "flatten" the nested arrays that you created in "QQQ" the results is complicated. I need to be able to specify for example QQQ(x,y) such that a plot of QQQ(0,0) yields a point in the center of the fractal. Does this make sense? </P><P><IMG __jive_id="51255" alt="Q3Nflat.PNG" class="jive-image" height="145" src="https://community.ptc.com/legacyfs/online/51255_Q3Nflat.PNG" width="250" /></P></BODY></HTML>Sun, 26 May 2013 00:01:45 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294633#M114952thiirane2013-05-26T00:01:45ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294634#M114953
<HTML><HEAD></HEAD><BODY><P>I have played with this a bit more. I was able to get a function that plot QP(x,y) but its a line not a point. Hmmm.</P></BODY></HTML>Sun, 26 May 2013 03:40:24 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294634#M114953thiirane2013-05-26T03:40:24ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294635#M114954
<HTML><HEAD></HEAD><BODY><P>Try the attached.</P><P>Plot2 is formatted as Scatterplot/DataPoints. That way you are able now to rotate, tilt, twist and zoom your plot using the mouse or the format menu, so be careful not to do so. Standard values are 0 for Rotate and 90 for Tilt and Twist.</P><P></P><P>PS: You may consider formatting Plot1 as scaterplot, too and play around with pointsize and colormap. See attached.</P></BODY></HTML>Sun, 26 May 2013 08:11:30 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294635#M114954Werner_E2013-05-26T08:11:30ZRe: Normalizing x,y axis of a Contour Plot
https://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294636#M114955
<HTML><HEAD></HEAD><BODY><P>It's not as complicated as it looks at first glance.The first matrix is the x coordinates, so all the columns are identical. The second matrix is the y coordinates, so all the rows are identical. If you look at either matrix on it's own as a surface, it's an inclinded plane. That's why you get all those stripes when you plot it as a contour plot.</P></BODY></HTML>Sun, 26 May 2013 13:37:16 GMThttps://community.ptc.com/t5/PTC-Mathcad/Normalizing-x-y-axis-of-a-Contour-Plot/m-p/294636#M114955RichardJ2013-05-26T13:37:16Z