Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2012-12-29
2
Medium Priority
?
1,618 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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 …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

721 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