Solved

how to disable autoscale in "y" and "X" axis using zedgraph control

Posted on 2012-12-29
2
1,576 Views
Last Modified: 2012-12-30
Im using zedgraph control to make a graph with visual basic

This is the code:
Imports ZedGraph
Public Class Form1
    Private Sub CreateGraph(ByVal zgc As ZedGraphControl)
        Dim myPane As GraphPane = zgc.GraphPane
        myPane.Title.Text = "My Test Graph"
        Dim list1 As New PointPairList()
        Dim i As Integer, x As Double, y1 As Double
        For x = 0 To 46000 Step 100
            y1 = 1.5 + Math.Sin(i * 0.2)
            list1.Add(x, y1)
        Next

        Dim myCurve As LineItem = myPane.AddCurve("Porsche", list1, Color.Red, SymbolType.Diamond)
        zgc.AxisChange()
        zgc.Refresh()
    End Sub

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        CreateGraph(grafica_entrada)
    End Sub
End Class

Open in new window


And this is the result:
example
As you can see both axis start with a scale.

I would like to know if it is possible that when the project load the axis remains without scale
0
Comment
Question by:altariamx2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 38730663
Hi,

To remove the ticks, please refer to

http://stackoverflow.com/questions/11213842/remove-graph-tick-marks-on-edges-of-zedgraph

to remove the labels you could refer to

http://zedgraph.dariowiz.com/index980a.html?title=Customize_the_scale_format

and use spaces as labels

Regards
0
 

Author Comment

by:altariamx2003
ID: 38730932
i works

thanks Rgonzo1971
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question