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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Graphing in C#, Possible?

Graphing in C#, Possible?

Scheduled Pinned Locked Moved C#
csharpcomgraphicsdata-structureshelp
10 Posts 6 Posters 0 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.
  • G Offline
    G Offline
    gvanto
    wrote on last edited by
    #1

    I would like to draw a graph of a vector of float values and was just wondering if this is possible in C#? Basically, just being to draw lines (by giving it co-ordinates) would suffice, however, have the capability to draw a vector (graph plotting) would be ideal... Any help much appreciated! Gerry C# Newbie

    Put A Smile On Your Face http://www.thecrazywebsite.com

    G G 2 Replies Last reply
    0
    • G gvanto

      I would like to draw a graph of a vector of float values and was just wondering if this is possible in C#? Basically, just being to draw lines (by giving it co-ordinates) would suffice, however, have the capability to draw a vector (graph plotting) would be ideal... Any help much appreciated! Gerry C# Newbie

      Put A Smile On Your Face http://www.thecrazywebsite.com

      G Offline
      G Offline
      gnadeem
      wrote on last edited by
      #2

      hi Gerry, Vector/advanced graphics is supported in Framework 3.0. if you are working with 1.1/2 version of the framework, this should be helpful Charting Library regards.

      1 Reply Last reply
      0
      • G gvanto

        I would like to draw a graph of a vector of float values and was just wondering if this is possible in C#? Basically, just being to draw lines (by giving it co-ordinates) would suffice, however, have the capability to draw a vector (graph plotting) would be ideal... Any help much appreciated! Gerry C# Newbie

        Put A Smile On Your Face http://www.thecrazywebsite.com

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Look up the System.Drawing namespace. In the Graphics class you will find methods for drawing any shape you like.

        --- Year happy = new Year(2007);

        G 1 Reply Last reply
        0
        • G Guffa

          Look up the System.Drawing namespace. In the Graphics class you will find methods for drawing any shape you like.

          --- Year happy = new Year(2007);

          G Offline
          G Offline
          gvanto
          wrote on last edited by
          #4

          Is this only in framework 3 or any of them? Thanks alot for your help guys, Gerry

          Put A Smile On Your Face http://www.thecrazywebsite.com

          C T 2 Replies Last reply
          0
          • G gvanto

            Is this only in framework 3 or any of them? Thanks alot for your help guys, Gerry

            Put A Smile On Your Face http://www.thecrazywebsite.com

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            System.Drawing has always been there.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            1 Reply Last reply
            0
            • G gvanto

              Is this only in framework 3 or any of them? Thanks alot for your help guys, Gerry

              Put A Smile On Your Face http://www.thecrazywebsite.com

              T Offline
              T Offline
              Thomas Stockwell
              wrote on last edited by
              #6

              I think what he is referring to is creating your own custom control that will draw the graphics how you want using the Graphics object provided in the OnPaint method of UserControls.

              Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]

              G 1 Reply Last reply
              0
              • T Thomas Stockwell

                I think what he is referring to is creating your own custom control that will draw the graphics how you want using the Graphics object provided in the OnPaint method of UserControls.

                Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]

                G Offline
                G Offline
                gvanto
                wrote on last edited by
                #7

                Yeah absolutely right Thomas, For example, I'd like to have something like: double [] dblArray = new double[5]; //Here populate dblArray with say: {0.30, 10.45, 23.61, 10.20, 57.10} //Plot the array with: (plotting ie. joining the points) PlotArray(dblArray); Any ideas on how to start with PlotArray( ) ? Thanks for the help guys, much appreciated! Gerry

                Put A Smile On Your Face http://www.thecrazywebsite.com

                L 1 Reply Last reply
                0
                • G gvanto

                  Yeah absolutely right Thomas, For example, I'd like to have something like: double [] dblArray = new double[5]; //Here populate dblArray with say: {0.30, 10.45, 23.61, 10.20, 57.10} //Plot the array with: (plotting ie. joining the points) PlotArray(dblArray); Any ideas on how to start with PlotArray( ) ? Thanks for the help guys, much appreciated! Gerry

                  Put A Smile On Your Face http://www.thecrazywebsite.com

                  L Offline
                  L Offline
                  led mike
                  wrote on last edited by
                  #8

                  gvanto wrote:

                  Any ideas on how to start with PlotArray( ) ?

                  Good grief! it has been over an hour since Guffa provided his information. Have you even looked at it yet? Here let me help http://msdn2.microsoft.com/en-us/library/system.drawing.graphics.drawlines.aspx[^]

                  led mike

                  G 1 Reply Last reply
                  0
                  • L led mike

                    gvanto wrote:

                    Any ideas on how to start with PlotArray( ) ?

                    Good grief! it has been over an hour since Guffa provided his information. Have you even looked at it yet? Here let me help http://msdn2.microsoft.com/en-us/library/system.drawing.graphics.drawlines.aspx[^]

                    led mike

                    G Offline
                    G Offline
                    gvanto
                    wrote on last edited by
                    #9

                    that link doesn't work Sir. I'm just looking for the best way to get the job done. sorry if i have offended you in any way. no hard feelings... Gerry

                    Put A Smile On Your Face http://www.thecrazywebsite.com

                    L 1 Reply Last reply
                    0
                    • G gvanto

                      that link doesn't work Sir. I'm just looking for the best way to get the job done. sorry if i have offended you in any way. no hard feelings... Gerry

                      Put A Smile On Your Face http://www.thecrazywebsite.com

                      L Offline
                      L Offline
                      led mike
                      wrote on last edited by
                      #10

                      gvanto wrote:

                      that link doesn't work Sir.

                      Then you need to get MSDN fixed where you live since it is an invaluable resource for windows developers.

                      gvanto wrote:

                      I'm just looking for the best way to get the job done.

                      The best way to start is to look at the documentation for the Graphics class we are telling you about.

                      led mike

                      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