Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Reverse Axes #86

Closed
pieterbergmans opened this issue Apr 20, 2022 · 3 comments
Closed

Feature Request: Reverse Axes #86

pieterbergmans opened this issue Apr 20, 2022 · 3 comments

Comments

@pieterbergmans
Copy link

This is a great library and very easy to use. Thanks!

My question is, is there anyway to reverse the x-axis? My data is in descending order but the plotext plots it in ascening order.

Thanks.

@piccolomo
Copy link
Owner

Hi @pieterbergmans,

sorry for late reply, I worked on latest version. I do not have this feature in the package, but sounds like something I could integrate, but not too sure.

In the mean time have you tried to reverse the x data with x[::-1] and to change the x ticks to the reversed ones with plotext.xticks()?

all the best and thanks a lot for the issue report

@piccolomo
Copy link
Owner

Hi @pieterbergmans, I am finally working on your idea. Here is a result:

image

I still have to upload the code. Any feedback welcomed.

@piccolomo
Copy link
Owner

piccolomo commented Sep 2, 2022

Hi @pieterbergmans, I finally updated plotext including the changes you asked for.

I introduced the function xreverse() and yreverse(), but haven't tested properly so any feedback is welcomed.

The new version is available on GitHib and soon also on PyPi. To install follow the indications here.

Your changes are documented here and you have been credited here.

Thanks a lot for your inputs and all the best,
Savino

@piccolomo piccolomo changed the title Reverse x-axis Feature Request: Reverse Axes Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants