+ Reply to Thread
Results 1 to 17 of 17

making a scatter plot with selected data

  1. #1
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2205
    Posts
    16

    making a scatter plot with selected data

    i am having an issue trying to create a scatter plot. I have the image of what it is supposed to look like, and the data im supposed to use. However, i can not get it to format correctly.

    Y axis should be the following:
    0
    0.5
    1
    1.5


    X axis should be listed as:
    10
    10^2
    10^4
    10^6
    10^8

    these numbers above should not be the actual number aka 100000, it should be listed as 10^4 in the axis.

    the data that needs to be plotted at specific (x,y) is :
    (0.4, 10^7), (0.4,10^7.5),(0.4,10^8)
    (0.5, 10^8)
    (0.6,10^7),(0.6,10^7.2)
    (0.7,10^5.5),(0.7,10^5.6),(0.7,10^5.7),(0.7,10^6)
    (1,10^4),(1,10^4.1),(1,10^4.4)
    (1.3,10^3.8),(1.3,10^4)

    how do i need to achieve this? thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: making a scatter plot with selected data

    Your description of what is on the x axis and y axis are the other way around from the list of ordered pairs. It would help if you attach your actual file and the image of what you want.

    these numbers above should not be the actual number aka 100000, it should be listed as 10^4 in the axis.
    The way you are writing the numbers for the x axis is not a supported format in Excel; in fact, it is not a standard format that I have ever seen (using decimal numbers as exponents of 10). It's valid arithmetic but I've never seen it used for anything. Anyway, the way you are writing it is a text string in Excel, and it just won't work. For a scatter plot using real numbers, you have to use actual real numbers (i.e., instead of 10^5.7 you'll have to use 501,187.23 or 5.01E+05). You could manage this if your x values were discrete and you could list every possible value; then you use text. But since they are real numbers, that won't work.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2205
    Posts
    16

    Re: making a scatter plot with selected data

    opps, yeah, the ordered pairs are wrong. the x and y axis are correct haha. Here is an image of what im trying to do. I do not need the curve fit, just the dots on the graph

    graph.JPG

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,832

    Re: making a scatter plot with selected data

    Other than the 10 [superscript] exponent notation, this should be straightforward. Enter/calculate the x values in one column and enter/calculate the y values in an adjacent column. Select the two columns and insert your scatter chart, then format as desired.

    If all you have are the exponents, I would:

    1) Enter the exponents into a column.
    2) Calculate the x values in the adjacent column with =10^A1 or =POWER(10,A1). Assume column B for this.
    3) Enter y values in column C.
    4) Insert and format chart.

    If you are not required to use the 10^x notation, it should be as easy as that.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: making a scatter plot with selected data

    This is as close as you can come (note that you need a logarithmic scale on the x axis). BTW your data does not make a curve anything like that.

    EDIT: I more or less did what MrShorty described.

    chart.jpg

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: making a scatter plot with selected data

    File attached. I had to sort your data by ascending x value.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2205
    Posts
    16

    Re: making a scatter plot with selected data

    i did all that before posting on the forums and i can not get it to work.

    Here is a snippet of all my data i used.

    graph data.JPG

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: making a scatter plot with selected data

    You have to format the x axis to be logarithmic scale

    log scale.jpg

  9. #9
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2205
    Posts
    16

    Re: making a scatter plot with selected data

    thanks for the reply. I had work so i could not reply back till now. i tried this and it just squezes the data, does not make it look much different. Needs to look like the graph on the right.

    thank you

    log graph.JPG
    Last edited by Lt72884; 06-05-2023 at 01:49 PM.

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: making a scatter plot with selected data

    If your data is not like the data on the left, your graph won't look like the graph on the left. The chart correctly represents the data you have.

    Why are you expecting it to look different than that.

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,832

    Re: making a scatter plot with selected data

    It is difficult to debug pictures. Is the picture in post #7 accurate? I don't see any of the expected x values anywhere in that picture. If you only give a scatter chart the y values with no x values, Excel will assume count numbers (1,2,3,...) for the x values, which seems consistent with what you show in the picture.

    I'm grasping at straws here, but it appears to me that you forgot to include the x values when you created the chart in your picture in post #7.

  12. #12
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2205
    Posts
    16

    Re: making a scatter plot with selected data

    the black and white graph is correct.

    the x values are number of cycles, and the y values are strain percentages ( i think). Each dot is plotted where the material failed after being subjected to that many cycles and percent of stress/strain.
    IE (10^8,0.5) is an x,y pair on the graph.

    these values here are the y values of each dot. they each have a corasponding x value of 10^something
    0.5
    0.5
    0.5
    0.6
    0.6
    0.7
    0.7
    0.7
    1
    1
    1
    1
    1.3
    1.3
    1.3

    I need to duplicate this graph as best as i can so i can find the best fit line. The S-N curve is very important for fatigue testing windmill blades or aerospace parts

    if scatter plot is not the best option, how do i plot each individual coordinate pair so that i can find a best fit?

    thanks

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,832

    Re: making a scatter plot with selected data

    And I can see those y values in the spreadsheet in your picture, but I am not seeing any of the x values (or log(x) or 10^(log(x)) values. Where have you entered the desired x values? Did you instruct the chart where to find those x values?

  14. #14
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2205
    Posts
    16

    Re: making a scatter plot with selected data

    on the far left of the excel sheet are my x values written out as the actual number (post 7 shows them). If i right click on the chart, select data, i can edit the series and choose the x values to be the 10,100,1000,10000,1000000 etc etc and the y values as the others listed above. I tried to use the other set of numbers as the Y axis as well, but it made things worse haha
    Last edited by Lt72884; 06-05-2023 at 11:00 PM.

  15. #15
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,832

    Re: making a scatter plot with selected data

    That would mean you have only 5 x values, but 15 y values, with no way for Excel to know what x values should pair with each y value.

    Review 6stringjazzer's file and see how he arranged the x, y pairs in the spreadsheet and then how he defined the data series in the chart.

  16. #16
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2205
    Posts
    16

    Re: making a scatter plot with selected data

    I THINK i got it to work. I created 15 x values that matched to the corresponding y values and then plotted. I went through and did a best guess of what the x value would be. I now have a trendline that at least gives a useable equation for testing.
    Thank you for all the help and advice. Im glad we were able to get this sorted out. I will continue to fine tune this chart.

    sn curve final.PNG

  17. #17
    Registered User
    Join Date
    06-19-2023
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    13

    Re: making a scatter plot with selected data

    Thanks , very helpful

+ 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. Replies: 1
    Last Post: 11-19-2021, 08:06 PM
  2. Help making neat scatter plot
    By newexcelus in forum Excel General
    Replies: 0
    Last Post: 03-17-2021, 12:26 AM
  3. Replies: 2
    Last Post: 11-08-2019, 04:57 AM
  4. How to enter time data? (making scatter plot)
    By chickpeasandom in forum Excel General
    Replies: 4
    Last Post: 03-15-2016, 12:08 PM
  5. How to plot only selected values on the scatter chart?
    By gabrielemucho in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-07-2014, 04:46 PM
  6. Replies: 2
    Last Post: 07-26-2012, 09:27 AM
  7. Trouble making scatter plot loop
    By henboffman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2011, 09:37 AM

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