Draw the line between two points in the space with given x and y values? #78
-
Dear Jason, Is there any way that I can draw the line between two points in the space with given x and y values? The method produce_scattertext_explorer, will take X, Y values, and plot horizontal or vertical lines. However, I want to plot in the space with multiple X and Y values Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Vijaya,
Will this help? We use this in ML as a visual aid for prediction.
https://seaborn.pydata.org/tutorial/regression.html
All the libraries are open source.
Dorai
LinkedIn Profile <https://www.linkedin.com/in/doraithodla/>
@dorait <https://twitter.com/dorait>
…On Mon, Dec 14, 2020 at 9:33 AM VIJAYA KUMARI YERUVA < ***@***.***> wrote:
Dear Jason,
Is there any way that I can draw the line between two points in the space
with given x and y values?
Is there any existing method that will take a set of X and set Y of values
to draw a line in the space (not the horizontal or vertical lines)?
The method produce_scattertext_explorer
<https://github.com/JasonKessler/scattertext/blob/6779d045351c03c24ee6aa6bca09a78bc461f422/scattertext/__init__.py#L123>,
will take X, Y values, and plot horizontal or vertical lines. However, I
want to plot in the space with multiple X and Y values
Any help is appreciated.
[image: scattertext]
<https://user-images.githubusercontent.com/25230005/102038872-009ef580-3d8e-11eb-83d9-c02b17dfdc5f.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#78>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKPFHWSCM3NDPWHG5CTNYLSUWFCRANCNFSM4U2C4VFA>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi @VIJAYAYERUVA , Right now there's no way to do this in Scattertext. However, you can follow the template of e1a9950, the commit that added a diagonal line from the lower-left to the upper-right corner of the plot. It includes everything from adding parameter to produce_scattertext_explorer to the actual change in the JS file. I encourage you to add the functionality which meets your needs, and contribute it back to the community. Jason |
Beta Was this translation helpful? Give feedback.
-
@JasonKessler, Is there any update to vertical_lines in Sample code
|
Beta Was this translation helpful? Give feedback.
Hi @VIJAYAYERUVA ,
Right now there's no way to do this in Scattertext.
However, you can follow the template of e1a9950, the commit that added a diagonal line from the lower-left to the upper-right corner of the plot. It includes everything from adding parameter to produce_scattertext_explorer to the actual change in the JS file.
I encourage you to add the functionality which meets your needs, and contribute it back to the community.
Jason