-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
add a basic heatmap example #118
Conversation
Need to run |
@AmitPress you can use vsl.la to have vector operations! There are already implemented for vectors and matrices |
Once you run the v fmt we can merge this |
We also have this issue to create plot examples using the V's equivalent to numpy |
@@ -0,0 +1,49 @@ | |||
import plotly.graph_objects as go | |||
import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be done for vlang/vtl#30 on VTL since it provides ndarrays
I'll do the merge and the fmt after thas |
Kindly replace the heatmap example in the readme of the plot with this. I was working with the Golden Ratio heatmap example (which is very beautiful by the way) but I was kind of unable to do some operations such as adding two vectors, multiplexing through the vector etc. I am looking forward to implementing some basic vector operations first then I will translate the previous heatmap example that was meant to draw golden ratio spiral.
Again, yes with this basic implementation there is still some room to improve though. We can actually have the accurate lebel for xaxis and yaxis of the plot accordingly in future.