Skip to content

Commit cfe99ad

Browse files
committed
updated nb
1 parent 857cdad commit cfe99ad

1 file changed

Lines changed: 4 additions & 41 deletions

File tree

DP1/100_How_to_Use_RSP_Tools/103_Image_access_and_display/103_8_Image_display_with_matplotlib.ipynb

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -154,44 +154,7 @@
154154
"id": "e01b4417-71f1-47c6-b699-5d2dbca85cbe",
155155
"metadata": {},
156156
"source": [
157-
"#### 1.2.2. Parameters\n",
158-
"\n",
159-
"Set the parameters of `matplotlib.pyplot` to give us a large default size for an image, and set some other parameters to make the default plot style be color-blind friendly and otherwise make plots look nice."
160-
]
161-
},
162-
{
163-
"cell_type": "code",
164-
"execution_count": null,
165-
"id": "da8e0929-fff7-4e08-8cf5-cdb441f9a96f",
166-
"metadata": {},
167-
"outputs": [],
168-
"source": [
169-
"plt.style.use('tableau-colorblind10')\n",
170-
"%matplotlib inline\n",
171-
"\n",
172-
"params = {'axes.labelsize': 28,\n",
173-
" 'font.size': 24,\n",
174-
" 'legend.fontsize': 14,\n",
175-
" 'xtick.major.width': 3,\n",
176-
" 'xtick.minor.width': 2,\n",
177-
" 'xtick.major.size': 12,\n",
178-
" 'xtick.minor.size': 6,\n",
179-
" 'xtick.direction': 'in',\n",
180-
" 'xtick.top': True,\n",
181-
" 'lines.linewidth': 3,\n",
182-
" 'axes.linewidth': 3,\n",
183-
" 'axes.labelweight': 3,\n",
184-
" 'axes.titleweight': 3,\n",
185-
" 'ytick.major.width': 3,\n",
186-
" 'ytick.minor.width': 2,\n",
187-
" 'ytick.major.size': 12,\n",
188-
" 'ytick.minor.size': 6,\n",
189-
" 'ytick.direction': 'in',\n",
190-
" 'ytick.right': True,\n",
191-
" 'figure.figsize': [8, 8],\n",
192-
" 'figure.facecolor': 'White'\n",
193-
" }\n",
194-
"plt.rcParams.update(params)"
157+
"#### 1.2.2. Parameters\n"
195158
]
196159
},
197160
{
@@ -799,7 +762,7 @@
799762
"metadata": {},
800763
"outputs": [],
801764
"source": [
802-
"#help(display.scale)"
765+
"help(display.scale)"
803766
]
804767
},
805768
{
@@ -809,7 +772,7 @@
809772
"metadata": {},
810773
"outputs": [],
811774
"source": [
812-
"#help(display.image)"
775+
"help(display.image)"
813776
]
814777
},
815778
{
@@ -973,7 +936,7 @@
973936
" for i in sources:\n",
974937
" afw_display.dot('o', i['x'],\n",
975938
" i['y'],\n",
976-
" size=5, ctype='orange')\n",
939+
" size=3, ctype='orange')\n",
977940
"plt.show()\n",
978941
"remove_figure(fig)"
979942
]

0 commit comments

Comments
 (0)