cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

8-Gravel

## Scale in 2d plot

Hello all,

I have two questions regarding the use of the 2d interpolation function:

1. As you can see in the attached file, I cannot display the x-axis in the right way.
2. How can I use the fit function for the get the results from an input array?

Thank.you very much!

Enrico

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald I
(To:ebelmonte)

A standard 3D plot of a 2D array uses array indices for X and Y  axis.  To plot the FIT function, use "CreateMesh"

8 REPLIES 8
21-Topaz II
(To:ebelmonte)

Hi Enrico Belmonte,

You have simply to remake the 3d plot, as I have done:

Saluti

FM

8-Gravel
(To:-MFra-)

Hello FM,

However on the x-axis I get vales between 0 and 10 and not between 1E4 and 2E4.

Thank-you very much!

Enrico

21-Topaz II
(To:ebelmonte)

It seems to me that it's okay!?!?

Furhermore, you can use the following program for a more accurate plot, but with the condition that the input matrix be a square one:

Example of "fitfield" use, plotting the function f(x,y)=sin(x)*sin(y)/(xy)

24-Ruby V
(To:-MFra-)

> It seems to me that it's okay!?!?

No, the scale in x- and y-direction is not as requested.

23-Emerald I
(To:ebelmonte)

A standard 3D plot of a 2D array uses array indices for X and Y  axis.  To plot the FIT function, use "CreateMesh"

24-Ruby V
(To:ebelmonte)
 As you can see in the attached file, I cannot display the x-axis in the right way.

Guess its easier than you think:

Using the first method (directly plotting the fit function) you would have to provide the ranges for x and y and also the number of grid in the "3D-Plot Format" window in the "Quickplot" tab.

So generally using Createmesh provides more flexibility and usually is the preferred method.

 How can I use the fit function for the get the results from an input array?

Input array? not sure what you want to achieve.

8-Gravel
(To:Werner_E)

Dear Mr. Exinger,