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

add a basic heatmap example #118

Merged
merged 7 commits into from
Oct 26, 2022
Merged

Conversation

AmitPress
Copy link
Contributor

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.

@JalonSolov
Copy link
Contributor

Need to run v fmt -w on the files.

@ulises-jeremias
Copy link
Member

@AmitPress you can use vsl.la to have vector operations! There are already implemented for vectors and matrices

@ulises-jeremias
Copy link
Member

Once you run the v fmt we can merge this

@ulises-jeremias ulises-jeremias added Hacktoberfest This label is assigned to any issue that is good to go for any Hacktoberfest participant hacktoberfest-accepted labels Oct 24, 2022
@ulises-jeremias
Copy link
Member

We also have this issue to create plot examples using the V's equivalent to numpy

vlang/vtl#30

@@ -0,0 +1,49 @@
import plotly.graph_objects as go
import numpy as np
Copy link
Member

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

@ulises-jeremias
Copy link
Member

I'll do the merge and the fmt after thas

@ulises-jeremias ulises-jeremias merged commit d437674 into vlang:master Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest This label is assigned to any issue that is good to go for any Hacktoberfest participant hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants