-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Issue with plotting multiple gv.Points with different opts arguments #618
Comments
Have you tried updating to the latest geoviews version 1.9.6? Because I don't get the blank plot or the error like you do. Though, I see you missing hover for some of your points. |
@hoxbro yes I am on the latest version, the map disappearing happens when I am plotting my larger dataset. I can post them here as they are just a collection of .CSV files. that are all formatted exactly the same as the dummy ones I included. This could give better insight to what exactly is happening as the problem can more easily be replicable. This initially sounds like it may be a memory issue. However, I've been able to plot datasets much larger than the ones I am using here with no issues. The issue seems to only come up when I am plotting multiple gv.points. |
Try to do it with fake data, make it as minimal as possible (5-10 lines), and verify that you can run the example and recreate the problem. There could be multiple issues, and if you can separate those it will be a big help. |
@hoxbro I have slightly updated the code in my MRE and believe I have gotten some of the issues to replicate. The only thing I have failed to replicate has been the background map disappearing. To explain a bit there are two main issues that occur.
The main issue seems to be, when calling multiple gv.points, only the first point called is hoverable, In this example MPING_points_ptype_test is the hoverable option, but in my testing, whatever points dataset you call first, will be the only one you can hover over.
|
As I have continued to play around with larger datasets, I have found that wrapping all points in () alleviates the issue of the map disappearing weirdly? The other problems still persist however. A syntax like this won't make the map disappear
But this will
|
I have also noticed, within these largest datasets, I am moving the slider from left (the past) to right (current time), the errors I have previously spoke about occur. However, if I am moving my slider from right (current time) to left (the past). Take a look at the difference in plots when I move left to right vs right to left for the same timestamp. Certain points still aren't hover-able regardless, but the data at least now looks correct. |
@Michael-Barletta, I have got a fix for the hover problem in #631 When that PR is merged, this issue will be automatically closed because I'm unsure if the other problems you observed are still there. If they are, please feel free to open another issue with a small minimal, reproducible example (MRE). And great presentation yesterday 👍 |
I am plotting multiple different pandas dataframe datasets in geoviews. One dataset I want a different marker shape, two of them I want with different color outlines and one remains plotted as is.
When I plot each of these separately the plots work fine, however, when all plotted together, things get weird. In my example I use a minimal dataset so that anyone could reproduce but the errors are much larger when I am using my larger dataset with a few hundred points.
I have time as a dimension that goes back about 24 hours and a slider is automatically added to the plot, when iterating over that slider everything is good for about 2-3 hours. However as I progress, certain points become the wrong color, entire datasets are not able to be hovered over, sometimes the points that are supposed to be circles become squares, and points that aren’t supposed to have outlines get outlines. The background map also disappears sometimes.
In going through the example I gave, the only aforementioned issue is that only one of the dots is hoverable, the other issues don’t seem to pop up on my end. So maybe it’s a size of data issue? Again, if you need me to provide the full .CSV files with a working example I would be happy to do so.
Complete, minimal, self-contained example code that reproduces the issue
Screenshots or screencasts of the bug in action
Here is a good example of what I am talking about, the data looks normal when plotted here, besides the fact that only certain pointer are hoverable
But when Traversing through the dataset, most of the points are now the wrong color/shape/ have the wrong outline color, and the background map has disappeared.
Also of note from the holoviz discourse: If we run
Then we get the following hint about shapely:
The text was updated successfully, but these errors were encountered: