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

How to create an empty coordinate? #123

Closed
DylanXie123 opened this issue Dec 4, 2019 · 9 comments
Closed

How to create an empty coordinate? #123

DylanXie123 opened this issue Dec 4, 2019 · 9 comments

Comments

@DylanXie123
Copy link

I need to use a list of coordinate to plot math function ln(x) where x ranges from -5 to 5, but it doesn't seem to have a way to create empty coordinates where x ranges from -5 to 0.

I tried to use FlSpot(-2.0, null) or null to represent an empty coordinate, but none of these work.

Are there any solutions here?

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 5, 2019

I didn't get you, may I ask you to explain it more clear?

@DylanXie123
Copy link
Author

I need to draw something like this

ln(x)-plot

I can use some coordinates in [0, 5] to plot ln(x) in positive x-axis, but I also want to use some empty coordinates in [-5, 0] to negative x-axis.

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 6, 2019

Why empty states?

@DylanXie123
Copy link
Author

😂 I want user to be able to scroll to see function image in all ranges.

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 6, 2019

Dude, you can draw it with transparent color,
does it make sense?

@DylanXie123
Copy link
Author

Sounds a great idea, thanks for your help
👍👍👍

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 7, 2019

Or maybe you can set the minY to -5,
I think it will work too.

@DylanXie123
Copy link
Author

Thanks a lot, I'll try that

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 7, 2019

You are welcome.

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