Solved

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

Posted on 2012-12-29
2
1,547 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 51

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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