Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create arabic charts ? (x-axis from right to left) with Plotly

I want to start plotting on the x-axis from right to left (for arabic charts). So I need the (x, y) = (0, 0) on the bottom right. Is it possible to do it on python with plotly? And how ?

like image 525
McAlixter Avatar asked Nov 22 '25 00:11

McAlixter


1 Answers

use decreasing x axis parameters.

import matplotlib.pyplot as plt

import numpy as np

t = np.arange(0.01, 5.0, 0.01)
s = np.exp(-t)
plt.plot(t, s)

plt.xlim(5, 0)  # decreasing time

plt.xlabel('decreasing time (s)')
plt.ylabel('voltage (mV)')
plt.title('Should be growing...')
plt.grid(True)

plt.show()
like image 62
Amara BOUDIB Avatar answered Nov 24 '25 14:11

Amara BOUDIB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!