holoviz / geoviews

Simple, concise geographical visualization in Python
http://geoviews.org
BSD 3-Clause "New" or "Revised" License
595 stars 77 forks source link

Bizarre line width rendering issue in bokeh #315

Closed emryslda closed 4 years ago

emryslda commented 5 years ago

Dear all, I am trying to use geoview to plot images, but I obtained an unwanted bold border in the image, after I gave a custom crs projection. the crs that I used comes from the to_crs_cartopy() function. First I defined the AreaDefinition with pyresemple.geometry.AreaDefinition , and then I transformed it with to_crs_cartopy(). the crs output is: _PROJ4Projection(+datum=NAD27 +ellps=WGS84 +no_defs=True +proj=utm +units=m +zone=31.0 +no_defs)

and what I got is:

https://user-images.githubusercontent.com/42739089/56588923-964ba700-65e4-11e9-887a-19081b2a7cbf.png

any idea? Thank you in advance Here there is the code I used.


opts.defaults(
    opts.GridSpace(shared_xaxis=True, shared_yaxis=True),
    opts.Image(cmap='rainbow', width=800, height=800,projection=crs),
    opts.Labels(text_color='white', text_font_size='8pt', text_align='left', text_baseline='bottom'),
    opts.Path(color='white'),
    opts.Spread(width=600),
    opts.Overlay(show_legend=True))
gview=xr_dataset.to(gv.Image, ['x', 'y'],dynamic=True)
gview*gf.borders*gf.coastline
djhoese commented 5 years ago

@emryslda I think the CRS could have been created without pyresample (to ease reproducibility for the geoviews devs) by using cartopy's UTM class with 31 specified.

emryslda commented 5 years ago

@djhoese Sure it is the almost same, also with it crs=crs.UTM(31) func the problem shows up.

philippjfr commented 4 years ago

Sorry for not getting back to this earlier, but with current versions I cannot reproduce those line rendering issues with recent versions. Please reopen if you can still reproduce this.