LinePlot#2807
Conversation
|
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2807-all-demos |
ba4251f to
4ea648e
Compare
|
The demo notebooks don't match the run.py files. Please run this command from the root of the repo and then commit the changes: pip install nbformat && cd demo && python generate_notebooks.py |
f9e8baa to
a1d11e8
Compare
|
The demo notebooks don't match the run.py files. Please run this command from the root of the repo and then commit the changes: pip install nbformat && cd demo && python generate_notebooks.py |
2 similar comments
|
The demo notebooks don't match the run.py files. Please run this command from the root of the repo and then commit the changes: pip install nbformat && cd demo && python generate_notebooks.py |
|
The demo notebooks don't match the run.py files. Please run this command from the root of the repo and then commit the changes: pip install nbformat && cd demo && python generate_notebooks.py |
b437a0f to
e637e7f
Compare
|
The demo notebooks don't match the run.py files. Please run this command from the root of the repo and then commit the changes: pip install nbformat && cd demo && python generate_notebooks.py |
8c19264 to
96891de
Compare
|
|
||
| ## Full Changelog: | ||
| No changes to highlight. | ||
| * Added the ability to set `x_lim`, `y_lim` and legend positions for `gr.ScatterPlot` by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 2807](https://github.com/gradio-app/gradio/pull/2807) |
There was a problem hiding this comment.
| x_lim: A tuple or list containing the limits for the x-axis. | |
| x_lim: A tuple or list containing the limits for the x-axis, specified as [x_min, x_max]. |
There was a problem hiding this comment.
Just to clarify, what does "If 'none', omit the legend" mean? if any of these None, the legend is omitted?
There was a problem hiding this comment.
| y_lim: A tuple of list containing the limits for the y-axis. | |
| y_lim: A tuple of list containing the limits for the y-axis, specified as [y_min, y_max]. |
There was a problem hiding this comment.
Same question as above about the Scatterplot
There was a problem hiding this comment.
| x_lim: A tuple or list containing the limits for the x-axis. | |
| y_lim: A tuple of list containing the limits for the y-axis. | |
| x_lim: A tuple or list containing the limits for the x-axis, specified as [x_min, x_max]. | |
| y_lim: A tuple of list containing the limits for the y-axis, specified as [y_min, y_max]. |
|
I ran the I think it's because I'm using an older version of Edit: yes, the error was present with |
abidlabs
left a comment
There was a problem hiding this comment.
Tested and everything works great, as long as I have altair>=4.2.0. Fantastic PR @freddyaboulton!
e39ea5c to
8703fbb
Compare
|
Thank you for the review @abidlabs ! |
Description
Addition of
gr.LinePlotwith api similar togr.ScatterPlot.To test, run the unit tests and run native_plots demo. You can check it out in the deployed space once spaces start to build again.
I also added the following to both LinePlot and ScatterPlot:
Checklist: