question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong Definitions of xlim() and ylim() Parameters

See original GitHub issue

Hi @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:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
piccolomocommented, Oct 18, 2022

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).

1reaction
piccolomocommented, Sep 2, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found