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. General Programming
  3. C#
  4. WinForms Plot

WinForms Plot

Scheduled Pinned Locked Moved C#
csharpwinformsquestion
4 Posts 2 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.
  • I Offline
    I Offline
    Ikke
    wrote on last edited by
    #1

    Does anyone know if there's a Windows.Forms Control aviable I can use to create graphs (like SCPL), which has the possibility to set the axes in the center (not just Y-axis all-left and X-axis on the bottom)? I need to use it to draw math functions (very simple ones, form y=ax+b), but all controls I can find put the Y-axis on the left and the X one on the bottom :S. Being able to display points on integer positions (like (1,1),(1,2),(2,3),(-1,-5),(-1,6) and so on) would be a plus. Thanks, Ikke

    I 1 Reply Last reply
    0
    • I Ikke

      Does anyone know if there's a Windows.Forms Control aviable I can use to create graphs (like SCPL), which has the possibility to set the axes in the center (not just Y-axis all-left and X-axis on the bottom)? I need to use it to draw math functions (very simple ones, form y=ax+b), but all controls I can find put the Y-axis on the left and the X one on the bottom :S. Being able to display points on integer positions (like (1,1),(1,2),(2,3),(-1,-5),(-1,6) and so on) would be a plus. Thanks, Ikke

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      Well int axisX = this.Width/2; int axisY = this.Height/2; a line with x and y MoveTo(x+axisX, y+axisY); I'm not an expert yet, but I play one at work. Yeah and here too.

      I 1 Reply Last reply
      0
      • I Ista

        Well int axisX = this.Width/2; int axisY = this.Height/2; a line with x and y MoveTo(x+axisX, y+axisY); I'm not an expert yet, but I play one at work. Yeah and here too.

        I Offline
        I Offline
        Ikke
        wrote on last edited by
        #3

        Mmm, you mean this little piece of code to write my own control? I can figure this out myself (really true LOL), but I doint know GDI+ :( (and Im too lazy LOL)

        I 1 Reply Last reply
        0
        • I Ikke

          Mmm, you mean this little piece of code to write my own control? I can figure this out myself (really true LOL), but I doint know GDI+ :( (and Im too lazy LOL)

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          GDI is easier than kindergarten. DirectX and 3D is another story altoghter I'm not an expert yet, but I play one at work. Yeah and here too.

          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