Skip to content

No shape and no marker 'cross-thin' on scattergeo plot #1707

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

Closed
collioud opened this issue May 19, 2017 · 3 comments
Closed

No shape and no marker 'cross-thin' on scattergeo plot #1707

collioud opened this issue May 19, 2017 · 3 comments

Comments

@collioud
Copy link

Hi,

I noticed that points with the symbol 'cross-thin' are not displayed in scattergeo plot (see codepen below). Same issue with other symbols like 'x-thin', 'line-ew', etc.

https://codepen.io/anon/pen/MmPXER?editors=0010

BTW, I am trying to draw lines and circles on a scattergeo plot, without success. Is it even possible ?

Thank you!

@etpinard
Copy link
Contributor

Oh, you scared me for a moment.

The markers are there, they're just very very small with the default marker.line.width value. In https://codepen.io/etpinard/pen/xdQKLb?editors=0010, marker.line.width is set to 2 making the markers visible 🎉 . For the record, the same odd behavior happens for scatter traces, see https://codepen.io/etpinard/pen/qmQWjO?editors=0010

Perhaps we should set a better marker.line.width default value when users specify a -thin marker symbol? Oh well, we'll put that on the v2 shelve (cc @alexcjohnson).


As for the shapes, data-referenced shapes / annotations / images aren't supported for geo subplots. That is, you can't drawn a shape on a map that will drag along with the map on pan and zoom. But you can drawn paper-referenced shapes by switching those xref and yref value to 'paper' as in https://codepen.io/etpinard/pen/bWQbLM?editors=0010. The shapes here sit on top of the map and are static.

We're about to implement data-referenced annotations for 3D subplot in #1638, but the geo implementation isn't on our short-term priority list unfortunately.

@collioud
Copy link
Author

collioud commented May 20, 2017

Thanks for these explanations!

For the 'thin' markers, I supposed changing the marker size would make it more visible. I was not aware of the marker.line propery...

Well, it is too bad not to be able to add geo-referenced shapes or annotations. For example, I am displaying on a map data points around a given position with a specified radius of search. In this case, it would have been so useful to display the maximum extent of search by a (projected) circle.

...but the geo implementation isn't on our short-term priority list unfortunately.

No problem, I know this is not an easy task to add this...

Cheers!

@emmanuelle
Copy link
Contributor

This issue was again mentioned in https://community.plot.ly/t/x-thin-marker-symbol/31356/3, changing the default could be a good idea.

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

3 participants