Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Suggestions for graphing software...

Suggestions for graphing software...

Scheduled Pinned Locked Moved The Lounge
data-structureshelp
31 Posts 13 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Chris C B

    … preferably free, but cheap is good too. All I want to do is set up an X axis, set up a Y axis, and plot a line-scatter graph. It seems Excel can't do this with non-linear X values on a linear X axis - or I can't coerce it to do so. Either way, I have given up struggling with it, to the point where I am prepared to drop some valuable beer vouchers on the problem. If anyone has any suggestions, I would be very glad to hear them.

    K Offline
    K Offline
    Kirill Illenseer
    wrote on last edited by
    #15

    Scilab seems like the way to go. Several of my scientific co-workers use that for dealing with data sets doing all kinds of stuffs that physics does with data, including non-linear axes.

    C 1 Reply Last reply
    0
    • C Chris C B

      … preferably free, but cheap is good too. All I want to do is set up an X axis, set up a Y axis, and plot a line-scatter graph. It seems Excel can't do this with non-linear X values on a linear X axis - or I can't coerce it to do so. Either way, I have given up struggling with it, to the point where I am prepared to drop some valuable beer vouchers on the problem. If anyone has any suggestions, I would be very glad to hear them.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #16

      You could have a look at GNUplot, it certainly meets your requirement for free.

      C 1 Reply Last reply
      0
      • C Chris C B

        … preferably free, but cheap is good too. All I want to do is set up an X axis, set up a Y axis, and plot a line-scatter graph. It seems Excel can't do this with non-linear X values on a linear X axis - or I can't coerce it to do so. Either way, I have given up struggling with it, to the point where I am prepared to drop some valuable beer vouchers on the problem. If anyone has any suggestions, I would be very glad to hear them.

        P Offline
        P Offline
        Pete Kelley
        wrote on last edited by
        #17

        I don't have a solution to offer, but I'm wondering if you could give some usable example data?(rigged-up or otherwise) I certainly recognize that this simple need has arisen more times than I can remember. It's time to dabble in tool-building. This kind of issue is a lot like when I only want to make a simple chicken-scratch sketch using old-school Paint but the system I happen to be using only has a major drawing program that takes too-long/forever to load up. Or I just want to type a sentence and a bloated word processor starts loading. Great to have some of the suggestions - checking out GNUPlot and some of the free-or-inexpensive options.

        Pete K.

        C 1 Reply Last reply
        0
        • C Chris C B

          Thanks, but I really, realy, realy do not want to write one more line of code just to display the data just one time.

          S Offline
          S Offline
          S Houghtelin
          wrote on last edited by
          #18

          So, how was the salmon? ;) Anyway I got 'yer Codez. It's like 6 lines of code.

          # Install & Load Library
          if (!require("readxl")) install.packages("readxl")
          library("readxl")

          Choose & Read Excel file, the 2 denotes the desired sheet number.

          my_data <- read_excel(file.choose(), 2)

          Extract data from the desired columns. RStudio will provide drop-down with column names.

          Ydata <- my_data$Column_With_Ydata
          Xdata <- my_data$Column_With_Xdata

          Plot data

          plot(Ydata, Xdata)

          As with any code you can get as fancy as you want, but for a one time look see...

          It was broke, so I fixed it.

          C 1 Reply Last reply
          0
          • C Chris C B

            … preferably free, but cheap is good too. All I want to do is set up an X axis, set up a Y axis, and plot a line-scatter graph. It seems Excel can't do this with non-linear X values on a linear X axis - or I can't coerce it to do so. Either way, I have given up struggling with it, to the point where I am prepared to drop some valuable beer vouchers on the problem. If anyone has any suggestions, I would be very glad to hear them.

            M Offline
            M Offline
            mngerhold
            wrote on last edited by
            #19

            At the risk of sounding dumb, I can't see the problem - what are 'non-linear X values' ? You can't just mean they are at unequal X-intervals, because surely that is trivial, even for Excel?

            C 1 Reply Last reply
            0
            • C Chris C B

              … preferably free, but cheap is good too. All I want to do is set up an X axis, set up a Y axis, and plot a line-scatter graph. It seems Excel can't do this with non-linear X values on a linear X axis - or I can't coerce it to do so. Either way, I have given up struggling with it, to the point where I am prepared to drop some valuable beer vouchers on the problem. If anyone has any suggestions, I would be very glad to hear them.

              C Offline
              C Offline
              cmkrnl
              wrote on last edited by
              #20

              I found ZedGraph maybe 10 years ago, and have driven it with C# for countless graphing needs since then.

              1 Reply Last reply
              0
              • C Chris C B

                … preferably free, but cheap is good too. All I want to do is set up an X axis, set up a Y axis, and plot a line-scatter graph. It seems Excel can't do this with non-linear X values on a linear X axis - or I can't coerce it to do so. Either way, I have given up struggling with it, to the point where I am prepared to drop some valuable beer vouchers on the problem. If anyone has any suggestions, I would be very glad to hear them.

                J Offline
                J Offline
                jcmaida
                wrote on last edited by
                #21

                convert non-linear to linear via log base 10, base 2, etc.

                C 1 Reply Last reply
                0
                • C Chris C B

                  Thanks for that - it looks useful, but I need something that I can import Excel or CSV data into. I have a LOT of data! :sigh:

                  T Offline
                  T Offline
                  thewazz
                  wrote on last edited by
                  #22

                  Add that info to your OP.

                  1 Reply Last reply
                  0
                  • F Foothill

                    I just plugged two sets of random numbers into Excel (2013) and produced a proper scatter plot. I followed these steps to get the trend line: trendline example. Is your data set too big for Excel?

                    if (Object.DividedByZero == true) { Universe.Implode(); }

                    C Offline
                    C Offline
                    Chris C B
                    wrote on last edited by
                    #23

                    The scatter graph works fine for X-Y points, but the data collection points are equally spaced on the graph, where they are, in fact, non-linear to the point of being random. They are closely spaced at the start of the X-axis, becoming sparser further along - but they are essentially just points where data had been collected, and adhere to no mathematically defined function. I want to impose a linear X-axis, say from 0 to 100, and have the graph points plotted along that linear axis. If I just use the X-Y data in a plot, then the X-axis is divided into equidistant points for the X value and the Y value plotted above it. If I add a third column of data to represent the X-axis, Excel accepts it but then draws two graphs, one for the X values and one for the Y values. If it were not for the 11,000 odd data points, I would use a piece of graph paper...

                    1 Reply Last reply
                    0
                    • K Kirill Illenseer

                      Scilab seems like the way to go. Several of my scientific co-workers use that for dealing with data sets doing all kinds of stuffs that physics does with data, including non-linear axes.

                      C Offline
                      C Offline
                      Chris C B
                      wrote on last edited by
                      #24

                      Thanks, I will check it out.

                      1 Reply Last reply
                      0
                      • L Lost User

                        You could have a look at GNUplot, it certainly meets your requirement for free.

                        C Offline
                        C Offline
                        Chris C B
                        wrote on last edited by
                        #25

                        Having just Bingled that, it looks like it could be a winner - thanks.

                        1 Reply Last reply
                        0
                        • P Pete Kelley

                          I don't have a solution to offer, but I'm wondering if you could give some usable example data?(rigged-up or otherwise) I certainly recognize that this simple need has arisen more times than I can remember. It's time to dabble in tool-building. This kind of issue is a lot like when I only want to make a simple chicken-scratch sketch using old-school Paint but the system I happen to be using only has a major drawing program that takes too-long/forever to load up. Or I just want to type a sentence and a bloated word processor starts loading. Great to have some of the suggestions - checking out GNUPlot and some of the free-or-inexpensive options.

                          Pete K.

                          C Offline
                          C Offline
                          Chris C B
                          wrote on last edited by
                          #26

                          Pete Kelley wrote:

                          This kind of issue is a lot like when I only want to make a simple chicken-scratch sketch using old-school Paint but the system I happen to be using only has a major drawing program that takes too-long/forever to load up. Or I just want to type a sentence and a bloated word processor starts loading.

                          'Twas always thus! In fact, although I said I didn't want to write a line of code, I am now thinking of writing an add-on for access to solve precisely this problem.

                          1 Reply Last reply
                          0
                          • M mngerhold

                            At the risk of sounding dumb, I can't see the problem - what are 'non-linear X values' ? You can't just mean they are at unequal X-intervals, because surely that is trivial, even for Excel?

                            C Offline
                            C Offline
                            Chris C B
                            wrote on last edited by
                            #27

                            See my reply to Foothill above. If you know of how it can be done, I would love to hear about it.

                            M 1 Reply Last reply
                            0
                            • J jcmaida

                              convert non-linear to linear via log base 10, base 2, etc.

                              C Offline
                              C Offline
                              Chris C B
                              wrote on last edited by
                              #28

                              Regrettably, although the X data points are non-linear, they are not non-linear in a predictable way, rather a random spacing, more densely pack at the root of the X-axis.

                              1 Reply Last reply
                              0
                              • S S Houghtelin

                                So, how was the salmon? ;) Anyway I got 'yer Codez. It's like 6 lines of code.

                                # Install & Load Library
                                if (!require("readxl")) install.packages("readxl")
                                library("readxl")

                                Choose & Read Excel file, the 2 denotes the desired sheet number.

                                my_data <- read_excel(file.choose(), 2)

                                Extract data from the desired columns. RStudio will provide drop-down with column names.

                                Ydata <- my_data$Column_With_Ydata
                                Xdata <- my_data$Column_With_Xdata

                                Plot data

                                plot(Ydata, Xdata)

                                As with any code you can get as fancy as you want, but for a one time look see...

                                It was broke, so I fixed it.

                                C Offline
                                C Offline
                                Chris C B
                                wrote on last edited by
                                #29

                                The salmon was exquisite, thanks for asking. Served with fresh asparagus and pasta shells, and accompanied with ice-cold Löwenbräu. If my coding were as good as my cooking, I would be richer than Bill Gates! :laugh: As for the rest of it, thanks, but I have decided to write an add-on to Excel to fix this problem, as I seem to recall having suffered from it before.

                                1 Reply Last reply
                                0
                                • C Chris C B

                                  … preferably free, but cheap is good too. All I want to do is set up an X axis, set up a Y axis, and plot a line-scatter graph. It seems Excel can't do this with non-linear X values on a linear X axis - or I can't coerce it to do so. Either way, I have given up struggling with it, to the point where I am prepared to drop some valuable beer vouchers on the problem. If anyone has any suggestions, I would be very glad to hear them.

                                  C Offline
                                  C Offline
                                  Chris C B
                                  wrote on last edited by
                                  #30

                                  My apologies to those who replied yesterday, but did not get an answer. We currently have the builders in, converting my old office in the stables into a self-contained flat, and what with shopping in IKEA, making tea for the builders, making sure they were following my plans, and visiting a couple of clients, the day just disappeared.

                                  1 Reply Last reply
                                  0
                                  • C Chris C B

                                    See my reply to Foothill above. If you know of how it can be done, I would love to hear about it.

                                    M Offline
                                    M Offline
                                    mngerhold
                                    wrote on last edited by
                                    #31

                                    I must be being dumb. I read your reply above, could not visualise it. Although the chance of my being able to help is slim, could you post a scan of a scribbled hand plot to illustrate?

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups