File tree 1 file changed +19
-4
lines changed
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 20
20
" \n " ,
21
21
" from IPython.display import Image\n " ,
22
22
" \n " ,
23
- " %load_ext rpy2.ipython\n " ,
24
- " \n " ,
25
23
" from pylab import rcParams\n " ,
26
24
" \n " ,
27
25
" size = 20\n " ,
43
41
" ) # for plotnine\n " ,
44
42
" \n " ,
45
43
" \n " ,
46
- " fig = graph_objects.Figure(layout = dict(width=10 , height=10 ))\n " ,
44
+ " fig = graph_objects.Figure(layout = dict(width=100 , height=100 ))\n " ,
47
45
" \n " ,
48
46
" templated_fig = pio.to_templated(fig)\n " ,
49
47
" pio.templates['my_template'] = templated_fig.layout.template\n " ,
50
48
" pio.templates.default = 'my_template'"
51
49
]
52
50
},
51
+ {
52
+ "cell_type" : " code" ,
53
+ "execution_count" : null ,
54
+ "metadata" : {},
55
+ "outputs" : [],
56
+ "source" : [
57
+ " %load_ext rpy2.ipython"
58
+ ]
59
+ },
53
60
{
54
61
"cell_type" : " code" ,
55
62
"execution_count" : null ,
62
69
" theme_set(theme_grey(base_size = 24))"
63
70
]
64
71
},
72
+ {
73
+ "cell_type" : " code" ,
74
+ "execution_count" : null ,
75
+ "metadata" : {},
76
+ "outputs" : [],
77
+ "source" : []
78
+ },
65
79
{
66
80
"cell_type" : " markdown" ,
67
81
"metadata" : {},
266
280
"cell_type" : " code" ,
267
281
"execution_count" : null ,
268
282
"metadata" : {
283
+ "scrolled" : true ,
269
284
"tags" : [
270
285
" ex" ,
271
286
" name:bar-counts" ,
284
299
" \n " ,
285
300
" })\n " ,
286
301
" fig.add_trace(bar)\n " ,
287
- " fig.show(renderer=' png' )"
302
+ " Image( fig.to_image(format= \" png\" , width=900, height=900) )"
288
303
]
289
304
},
290
305
{
You can’t perform that action at this time.
0 commit comments