Solved

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

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

11 Experts available now in Live!

Get 1:1 Help Now