Solved

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

Posted on 2012-12-29
2
1,489 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
2 Comments
 
LVL 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now