Hi all.

I want to make a plot with two xticks. Lets say at -3051 and 2011

position. How can I do it?

Thanks.

Petro.

One way to do it:

import numpy as np

import matplotlib.pyplot as plt

x = np.linspace(-3100, 2025, num=50)

y = np.random.random(50)

plt.plot(x, y)

plt.xticks([-3051, 2011])

plt.show()

Cheers,

Scott

## ยทยทยท

On 11 January 2012 15:13, Petro <x.piter@...287...> wrote:

I want to make a plot with two xticks. Lets say at -3051 and 2011

position. How can I do it?