How can I change the X axis?


Maria

friends! Today, I want to ask my next question - how to change the points on the X axis?

See what I have.

chart1.Series[0].Points.Clear();
chart1.Series[0].Color = Color.Red;
chart1.Series[0].BorderWidth = 2;
...
for (double i = step; i <= T; i += step)
{...
   chart1.Series[0].Points.AddXY(i, SomeVar);
}

So I have.enter image description here

But I don't want to see number 11. Can you understand what I want? :)

MichaC

Try changing the min and max of the axis, this will hide the auto-generated axis labels.

chart1.ChartAreas[0].AxisX.Minimum = 0;
chart1.ChartAreas[0].AxisX.Maximum = 10;

Related


How can I change the X axis?

Maria friends! Today, I want to ask my next question - how to change the points on the X axis? See what I have. chart1.Series[0].Points.Clear(); chart1.Series[0].Color = Color.Red; chart1.Series[0].BorderWidth = 2; ... for (double i = step; i <= T; i += step)

How can I change the x-axis in D3?

Miranda I am trying to create a bar chart showing the number of days in each month of the year. I wanted to change the numbers on the x-axis of the bar chart, but it turns out that the numbers start at 0 and end at 11, not 1 to 12. How to solve this problem?

How can I change the x-axis limits in the contour plot?

Kunal Singhal I want my plot to also show 7000 on the x-axis, since there are more than 6000 values in the data. I try to use, set_xlim(right = 7000)but an error pops up 'QuadContourSet' object has no attribute 'set_xlim' import numpy as np import matplotlib.p

How can I change the x-axis limits in the contour plot?

Kunal Singhal I want my plot to also show 7000 on the x-axis, since there are more than 6000 values in the data. I try to use, set_xlim(right = 7000)but an error pops up 'QuadContourSet' object has no attribute 'set_xlim' import numpy as np import matplotlib.p

How can I change the axis units in a graph?

AndréNewInPython I'm working on plotting some galaxy velocities matplotlibfrom some .fitsfiles . The problem is that the axes in the figure show the size of the Milky Way in pixels, I want to display them as Declination and RightAcension (in degrees). I alread

How can I change the color of the primfaces axis?

xandl1994 How to change the color of primefaces Axis? I don't see any default color and don't know how to change it. public LineChartModel getLineChartModel() { LineChartModel model = new LineChartModel(); model.addSeries(getData());; model.set

How can I change the axis units in a graph?

AndréNewInPython I'm working on plotting some galaxy velocities matplotlibfrom some .fitsfiles . The problem is that the axes in the figure show the size of the Milky Way in pixels, I want to display them as Declination and RightAcension (in degrees). I alread

How can I change the font of the chart axis?

Black How to iterate over the axes of a chart? The number of axes the chart may have is variable, it may be 1 or more...hence the loop. I have the following code: Dim a As Axis ' For Each a In ActiveChart.Axes a.Format.TextFrame2.TextRange.Font.Name = "Cal

How can I change the axis units in a graph?

AndréNewInPython I'm working on plotting some galaxy velocities matplotlibfrom some .fitsfiles . The problem is that the axes in the figure show the size of the Milky Way in pixels, I want to display them as Declination and RightAcension (in degrees). I alread

How can I change the currency on the Y axis?

common sense I want the value of crude oil on the vertical axis of the chart - in USD - in euros (of course, at the current EURUSD rate). How can this be done? PineCoders-LucF Not really a Pine issue, but using spread : CL1!/EURUSD.

How can I change the axis units in a graph?

AndréNewInPython I'm working on plotting some galaxy velocities matplotlibfrom some .fitsfiles . The problem is that the axes in the figure show the size of the Milky Way in pixels, I want to display them as Declination and RightAcension (in degrees). I alread

How can I change the axis units in a graph?

AndréNewInPython I'm working on plotting some galaxy velocities matplotlibfrom some .fitsfiles . The problem is that the axes in the figure show the size of the Milky Way in pixels, I want to display them as Declination and RightAcension (in degrees). I alread

How can I change the font of the chart axis?

Black How to iterate over the axes of a chart? The number of axes the chart may have is variable, it may be 1 or more...hence the loop. I have the following code: Dim a As Axis ' For Each a In ActiveChart.Axes a.Format.TextFrame2.TextRange.Font.Name = "Cal

How can I change the font of the chart axis?

Black How to iterate over the axes of a chart? The number of axes the chart may have is variable, it may be 1 or more...hence the loop. I have the following code: Dim a As Axis ' For Each a In ActiveChart.Axes a.Format.TextFrame2.TextRange.Font.Name = "Cal

How can I change the axis units in a graph?

AndréNewInPython I'm working on plotting some galaxy velocities matplotlibfrom some .fitsfiles . The problem is that the axes in the figure show the size of the Milky Way in pixels, I want to display them as Declination and RightAcension (in degrees). I alread

How can I change the axis units in a graph?

AndréNewInPython I'm working on plotting some galaxy velocities matplotlibfrom some .fitsfiles . The problem is that the axes in the figure show the size of the Milky Way in pixels, I want to display them as Declination and RightAcension (in degrees). I alread

How can I add an X axis to the plot?

Ann Kribel I'm trying to plot some data, but I don't know how to add date values on the x-axis of the chart. Here is my code: import pandas as pd import numpy as np %matplotlib inline %pylab inline import matplotlib.pyplot as plt pylab.rcParams['figure.figsiz

How can I add an X axis to the plot?

Ann Kribel I'm trying to plot some data, but I don't know how to add date values on the x-axis of the chart. Here is my code: import pandas as pd import numpy as np %matplotlib inline %pylab inline import matplotlib.pyplot as plt pylab.rcParams['figure.figsiz