+ Reply to Thread
Results 1 to 12 of 12

Use X-Y-Z data to create a surface plot

  1. #1
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,264

    Use X-Y-Z data to create a surface plot

    Hello all,

    I have X-Y-Z data where the Xs and Ys are not consistent - there are within specific ranges, but they are inconsistent.

    I will choose X and Y values to create a table that can be used to create a surface plot - is there a formula that can do the interpolation based on my actual data and chosen interval values?

    Thanks,
    Bernie
    Bernie Deitrick
    Excel MVP 2000-2010

  2. #2
    Registered User
    Join Date
    11-20-2015
    Location
    Rogers
    MS-Off Ver
    365
    Posts
    23

    Re: Use X-Y-Z data to create a surface plot

    If you can attach a sample file including what you are hoping to accomplish, it would help with finding a suitable remedy.

  3. #3
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,264

    Re: Use X-Y-Z data to create a surface plot

    The attached is a much simplified set up of my problem.
    Attached Files Attached Files

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Use X-Y-Z data to create a surface plot

    You could create a 2 variable data table.

    https://support.office.com/en-gb/art...2-77542a5ea50b
    Cheers
    Andy
    www.andypope.info

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,264

    Re: Use X-Y-Z data to create a surface plot

    Unfortuantely, I don't have an equation for my data - I only have the data.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Use X-Y-Z data to create a surface plot

    Ah, your example simplified the problem too much.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Use X-Y-Z data to create a surface plot

    I am scratching my head trying to see the (math) relationships between the data and output table expected results.

    I am not seeing interpolated values in the interval ranges ... maybe I am not interpreting what the intended interval ranges are.

    What am I missing?
    Dave

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,264

    Re: Use X-Y-Z data to create a surface plot

    Stated another way, I need the best estimate for the X Y pairs in the table, based on the data. So, X = 1 Y = 1 does not exist in the data table, but I want to estimate Z (which would be 2, based on the relationship of my example) without having the X Y pair of 1,1 anywhere in my data. There is no requirement that any of the the pairs that I am interested in (the nine pairs formed by 1,2,3 and 1,2,3) exist as such in my data. And the relationship is not necessarily linear, but I am willing to use an interpolation between points in my table as the basis of the check against my data, trying to minimize the error.

  9. #9
    Registered User
    Join Date
    11-20-2015
    Location
    Rogers
    MS-Off Ver
    365
    Posts
    23

    Re: Use X-Y-Z data to create a surface plot

    Just out of curiosity, can you share any context around what this data is or what you are hoping to show with, for example, the Z estimate? Trying to understand what other options might provide a simpler solution.
    Last edited by rlmh06; 04-06-2018 at 03:32 PM.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Use X-Y-Z data to create a surface plot

    Try Annova Factor - maybe you will find any pattern

  11. #11
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,264

    Re: Use X-Y-Z data to create a surface plot

    I am trying to create a surface chart to show a temperature map of a surface, based on thermocouple data. But the thermocouples were not properly spaced, nor in the correct number, to meet Excel's limitation of a rectangular data table with set intervals. I came in late to the project, after all the data was collected, so re-instrumenting the surface and re-running the tests is not an option.

    I can - and may have to - simply move the data onto a grid (by changing the X Y values to set values) to show the graph - but that would distort the resulting representation of the actual values, so I was hoping that there was some two-way reverse interpolation technique to populate the table without distorting the resulting map by very much.

    I'm exploring an iterative approach where I calculate the average for every point within sections of a new grid, then set the surface (the four points defining it) to that average, then going to another section, getting an average, adjusting the common points, etc.. then checking the calculated value for every point based on double linear interpolations, until I minimize the error measurement.

    The other approach I am contemplating is to use a 'finer mesh' of points so that every data point is on or very close to an intersection, then interpolating every which way to fill in the missing points.
    Last edited by Bernie Deitrick; 04-06-2018 at 04:23 PM.

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Use X-Y-Z data to create a surface plot

    I'm afraid that's over my head.

    Does this come close to what you are looking for?

    In column K this array formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In row 6 this array formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then in L7:N9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    All I am able to do is duplicate expected results.


    G
    H
    I
    J
    K
    L
    M
    N
    6
    1
    2
    3
    0.75
    2.00
    3.00
    7
    1
    2
    3
    4
    1.00
    2
    3
    4
    8
    2
    3
    4
    5
    1.75
    3
    4
    5
    9
    3
    4
    5
    6
    3.00
    4
    5
    6

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 3d Surface Plot with Axis to Scale
    By chub18 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-24-2015, 05:31 PM
  2. Surface Plot from raw X-Y-Z data?
    By matonking in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-14-2015, 01:05 PM
  3. Surface Plot Help Needed
    By bougo25 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-02-2013, 08:06 AM
  4. Surface Plot Will Not Rotate
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2010, 10:55 AM
  5. Plot 3D Coordinates (x,y,z) on 3D surface Map
    By R_S_6 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-09-2009, 09:15 AM
  6. Surface Plot Creation
    By Ben H in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2006, 09:15 AM
  7. CAD surface from EXCEL surface plot
    By tombemis in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-12-2005, 05:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1