|
248 | 248 | "cell_type": "markdown",
|
249 | 249 | "metadata": {},
|
250 | 250 | "source": [
|
251 |
| - "There is a [list of all style keys](Table%20of%20widget%20keys%20and%20style%20keys.ipynb#Style-keys)." |
| 251 | + "There is a [list of all style keys](Table_of_widget_keys_and_style_keys.ipynb#Style-keys)." |
252 | 252 | ]
|
253 | 253 | },
|
254 | 254 | {
|
|
786 | 786 | "source": [
|
787 | 787 | "**To do:**\n",
|
788 | 788 | "\n",
|
789 |
| - "+ Change the `min_width` for *one* of the `items`, say the first one. Does it affect only the first one, or all of them? Why?\n", |
790 |
| - "+ Change the `height` of *only* the first button. *Hint:* It needs its own `Layout`." |
| 789 | + "1. Change the `min_width` for *one* of the `items`, say the first one. Does it affect only the first one, or all of them? Why?\n", |
| 790 | + "2. Change the `height` of *only* the first button. *Hint:* It needs its own `Layout`." |
791 | 791 | ]
|
792 | 792 | },
|
793 | 793 | {
|
|
1427 | 1427 | " sc_x = scales_x[j]\n",
|
1428 | 1428 | " sc_y = scales_y[i]\n",
|
1429 | 1429 | "\n",
|
1430 |
| - " scatt = bq.Scatter(x=data[:, j], y=data[:, i], scales={'x': sc_x, 'y': sc_y}, default_size=1)\n", |
| 1430 | + " scatt = bq.Scatter(x=data[:, j], y=data[:, i], scales={'x': sc_x, 'y': sc_y})\n", |
1431 | 1431 | "\n",
|
1432 | 1432 | " gs[i, j] = bq.Figure(marks=[scatt], layout=Layout(width='auto', height='auto'),\n",
|
1433 |
| - " fig_margin=dict(top=0, bottom=0, left=0, right=0))\n", |
| 1433 | + " fig_margin=dict(top=5, bottom=5, left=5, right=5), background_style={'fill':'#f5f5ff'})\n", |
1434 | 1434 | " else:\n",
|
1435 | 1435 | " sc_x = scales_x[j]\n",
|
1436 | 1436 | " sc_y = bq.LinearScale()\n",
|
1437 | 1437 | " \n",
|
1438 | 1438 | " hist = bq.Hist(sample=data[:,i], scales={'sample': sc_x, 'count': sc_y})\n",
|
1439 | 1439 | " \n",
|
1440 | 1440 | " gs[i, j] = bq.Figure(marks=[hist], layout=Layout(width='auto', height='auto'),\n",
|
1441 |
| - " fig_margin=dict(top=0, bottom=0, left=0, right=0))\n", |
| 1441 | + " fig_margin=dict(top=5, bottom=5, left=5, right=5), background_style={'fill':'#f5f5ff'})\n", |
1442 | 1442 | "gs"
|
1443 | 1443 | ]
|
1444 | 1444 | },
|
|
0 commit comments