Wrong Definitions of xlim() and ylim() Parameters
See original GitHub issueHi @piccolomo,
Thank you for your amazing work on plotext!
I wanted to define ylim()
for plots in uproot-browser (scikit-hep/uproot-browser#70) and got confused with how xlim()
and ylim()
are defined. The Plot Limits documentation mentions how xlim(left, right)
and ylim(lower, upper)
work, which is intuitive. However, _core.py
and _figure.py
define xlim()
with lower
and upper
, and vice versa for ylim()
. The same reversal can be observed at various other places such as _monitor.py
and doc.py
(for xside
too here).
I believe xlim()
should use left
and right
while ylim()
should use upper
and lower
. Is this by design or have the definitions been reversed everywhere?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to deal with error invalid xlim value in base R plot?
The error invalid xlim value occurs when we incorrectly provide the xlim values, these values are not used in sequence, we just need...
Read more >xlim and ylim issues while plotting graph #1715 - GitHub
I am using R code for DGE and plot generation. Following is the code : rld <- rlogTransformation(dds, blind=TRUE)
Read more >Error in xlim and ylim? - MATLAB Answers - MathWorks
There is an error saying "Array indices must be positive integers or logical values. Error in task4 (line 21) xlim([0 3]);". Why is...
Read more >puzzled by xlim/ylim behavior in R - Stack Overflow
Two things are not how I expected it: 1) the x-axis and y-axis are NOT restricted to their xlim and ylim values. (Why...
Read more >How to Use xlim() and ylim() in R? - GeeksforGeeks
The xlim() function with the provided parameters as the range of the x-axis in vectors is used to set the x-axis without dropping...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @matthewfeickert, apologies to everyone, the commit history has been restored starting from all working past version I could retrieve and putting the package back up again. I now know the fundamentals of
git
(which I did not before, causing problems to the git project) and the history should be clearer from there on.I double checked as well, and
v5.2.2
is the version from which the problem was solved. From there one, all more updated version should have this issue solved as well.Also from there on, all contributors will clearly appear in the commit history (other then credits section when needed).
Hi @amangoel185 , I finally updated
plotext
and the new version should solve this issue.The new version is available on GitHib for now and soon also on PyPi. To install follow the indications here.
Any feedback is welcomed. Please report if the issue persists.
Thanks a lot for your inputs and all the best, Savino