File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 5
5
text_representation :
6
6
extension : .md
7
7
format_name : markdown
8
- format_version : " 1.2"
9
- jupytext_version : 1.3.1
8
+ format_version : ' 1.2'
9
+ jupytext_version : 1.3.0
10
10
kernelspec :
11
11
display_name : Python 3
12
12
language : python
@@ -22,8 +22,7 @@ jupyter:
22
22
pygments_lexer : ipython3
23
23
version : 3.7.3
24
24
plotly :
25
- description :
26
- How to use datashader to rasterize large datasets, and visualize
25
+ description : How to use datashader to rasterize large datasets, and visualize
27
26
the generated raster data with plotly.
28
27
display_as : scientific
29
28
language : python
@@ -107,9 +106,12 @@ df = pd.read_parquet('https://raw.githubusercontent.com/plotly/datasets/master/2
107
106
cvs = ds.Canvas(plot_width = 100 , plot_height = 100 )
108
107
agg = cvs.points(df, ' SCHEDULED_DEPARTURE' , ' DEPARTURE_DELAY' )
109
108
agg.values = np.log10(agg.values)
110
- agg.attrs[' long_name' ] = ' Log10(count)'
111
- fig = px.imshow(agg, origin = ' lower' )
109
+ fig = px.imshow(agg, origin = ' lower' , labels = {' color' :' Log10(count)' })
112
110
fig.update_traces(hoverongaps = False )
113
- fig.update_layout(coloraxis_colorbar = dict (title = ' Count (Log) ' , tickprefix = ' 1.e' ))
111
+ fig.update_layout(coloraxis_colorbar = dict (title = ' Count' , tickprefix = ' 1.e' ))
114
112
fig.show()
115
113
```
114
+
115
+ ``` python
116
+
117
+ ```
You can’t perform that action at this time.
0 commit comments