Skip to content

Commit 24475ce

Browse files
committed
fixed bug in ticklabels' options in default configuration files for plotting
1 parent 5bec7d7 commit 24475ce

File tree

3 files changed

+246
-189
lines changed

3 files changed

+246
-189
lines changed

bulkDGD/ioutil/configs/plot/pca_scatter.yaml

Lines changed: 83 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ plot:
8080
# Default: 'husl'.
8181
palette: husl
8282

83-
#-------------------------------------------------------------------#
83+
84+
#####################################################################
85+
8486

8587
# Set the options for the legend (passed to
8688
# 'matplotlib.axes.Axes.legend').
@@ -176,7 +178,9 @@ plot:
176178
# Default: 10.
177179
size: 10
178180

179-
#-------------------------------------------------------------------#
181+
182+
#####################################################################
183+
180184

181185
# Set the options for the x-axis.
182186
xaxis:
@@ -219,45 +223,52 @@ plot:
219223
#
220224
# Default: 10.
221225
size: 10
226+
227+
#-----------------------------------------------------------------#
222228

223-
# Set the options for the ticks' labels (passed to
224-
# 'matplotlib.axes.Axes.set_xticklabels').
225-
#
226-
# All the available options to set up the ticks' labels can be
227-
# found at:
228-
#
229-
# https://matplotlib.org/stable/api/_as_gen/
230-
# matplotlib.axes.Axes.set_xticklabels.html
229+
# Set the ticks' labels.
231230
ticklabels:
232-
233-
# Set the rotation of the ticks' labels.
234-
#
235-
# Type: float.
236-
#
237-
# Default: 0.0.
238-
rotation: 0.0
239231

240-
# Set the properties of the font of the ticks' labels.
232+
# Set the options for the ticks' labels (passed to
233+
# 'matplotlib.axes.Axes.set_xticklabels').
241234
#
242-
# All the availabe options for the properties can be found at:
235+
# All the available options to set up the ticks' labels can be
236+
# found at:
243237
#
244-
# https://matplotlib.org/stable/api/
245-
# font_manager_api.html#matplotlib.font_manager.FontProperties
246-
fontproperties:
247-
248-
# Set the name of/path to the font.
238+
# https://matplotlib.org/stable/api/_as_gen/
239+
# matplotlib.axes.Axes.set_xticklabels.html
240+
options:
241+
242+
# Set the rotation of the ticks' labels.
249243
#
250-
# Type: str.
244+
# Type: float.
251245
#
252-
# Default: !!null (the default Matplotlib font will be used).
253-
fname: !!null
254-
255-
# Set the font size.
246+
# Default: 0.0.
247+
rotation: 0.0
248+
249+
# Set the properties of the font of the ticks' labels.
256250
#
257-
# Type: int.
251+
# All the availabe options for the properties can be found at:
258252
#
259-
# Default: 10.
260-
size: 8
253+
# https://matplotlib.org/stable/api/
254+
# font_manager_api.html#matplotlib.font_manager.FontProperties
255+
fontproperties:
256+
257+
# Set the name of/path to the font.
258+
#
259+
# Type: str.
260+
#
261+
# Default: !!null (the default Matplotlib font will be used).
262+
fname: !!null
263+
264+
# Set the font size.
265+
#
266+
# Type: int.
267+
#
268+
# Default: 10.
269+
size: 8
270+
271+
#-----------------------------------------------------------------#
261272

262273
# Set the options for the interval represented on the axis.
263274
interval:
@@ -273,7 +284,9 @@ plot:
273284
# Default: 'continuous'.
274285
type: continuous
275286

276-
#-------------------------------------------------------------------#
287+
288+
#####################################################################
289+
277290

278291
# Set the options for the y-axis.
279292
yaxis:
@@ -316,45 +329,52 @@ plot:
316329
#
317330
# Default: 10.
318331
size: 10
332+
333+
#-----------------------------------------------------------------#
319334

320-
# Set the options for the ticks' labels (passed to
321-
# 'matplotlib.axes.Axes.set_yticklabels').
322-
#
323-
# All the available options to set up the ticks' labels can be
324-
# found at:
325-
#
326-
# https://matplotlib.org/stable/api/_as_gen/
327-
# matplotlib.axes.Axes.set_yticklabels.html
335+
# Set the ticks' labels.
328336
ticklabels:
329-
330-
# Set the rotation of the ticks' labels.
331-
#
332-
# Type: float.
333-
#
334-
# Default: 0.0.
335-
rotation: 0.0
336337

337-
# Set the properties of the font of the ticks' labels.
338+
# Set the options for the ticks' labels (passed to
339+
# 'matplotlib.axes.Axes.set_yticklabels').
338340
#
339-
# All the availabe options for the properties can be found at:
341+
# All the available options to set up the ticks' labels can be
342+
# found at:
340343
#
341-
# https://matplotlib.org/stable/api/
342-
# font_manager_api.html#matplotlib.font_manager.FontProperties
343-
fontproperties:
344-
345-
# Set the name of/path to the font.
344+
# https://matplotlib.org/stable/api/_as_gen/
345+
# matplotlib.axes.Axes.set_yticklabels.html
346+
options:
347+
348+
# Set the rotation of the ticks' labels.
346349
#
347-
# Type: str.
350+
# Type: float.
348351
#
349-
# Default: !!null (the default Matplotlib font will be used).
350-
fname: !!null
351-
352-
# Set the font size.
352+
# Default: 0.0.
353+
rotation: 0.0
354+
355+
# Set the properties of the font of the ticks' labels.
353356
#
354-
# Type: int.
357+
# All the availabe options for the properties can be found at:
355358
#
356-
# Default: 10.
357-
size: 8
359+
# https://matplotlib.org/stable/api/
360+
# font_manager_api.html#matplotlib.font_manager.FontProperties
361+
fontproperties:
362+
363+
# Set the name of/path to the font.
364+
#
365+
# Type: str.
366+
#
367+
# Default: !!null (the default Matplotlib font will be used).
368+
fname: !!null
369+
370+
# Set the font size.
371+
#
372+
# Type: int.
373+
#
374+
# Default: 10.
375+
size: 8
376+
377+
#-----------------------------------------------------------------#
358378

359379
# Set the options for the interval represented on the axis.
360380
interval:

bulkDGD/ioutil/configs/plot/r_values_hist.yaml

Lines changed: 79 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ plot:
8686
#
8787
# Default: False.
8888
density: False
89+
90+
91+
#####################################################################
8992

90-
#-------------------------------------------------------------------#
9193

9294
# Set the options for the x-axis.
9395
xaxis:
@@ -130,45 +132,52 @@ plot:
130132
#
131133
# Default: 10.
132134
size: 10
135+
136+
#-----------------------------------------------------------------#
133137

134-
# Set the options for the ticks' labels (passed to
135-
# 'matplotlib.axes.Axes.set_xticklabels').
136-
#
137-
# All the available options to set up the ticks' labels can be
138-
# found at:
139-
#
140-
# https://matplotlib.org/stable/api/_as_gen/
141-
# matplotlib.axes.Axes.set_xticklabels.html
138+
# Set the ticks' labels.
142139
ticklabels:
143-
144-
# Set the rotation of the ticks' labels.
145-
#
146-
# Type: float.
147-
#
148-
# Default: 0.0.
149-
rotation: 0.0
150140

151-
# Set the properties of the font of the ticks' labels.
141+
# Set the options for the ticks' labels (passed to
142+
# 'matplotlib.axes.Axes.set_xticklabels').
152143
#
153-
# All the availabe options for the properties can be found at:
144+
# All the available options to set up the ticks' labels can be
145+
# found at:
154146
#
155-
# https://matplotlib.org/stable/api/
156-
# font_manager_api.html#matplotlib.font_manager.FontProperties
157-
fontproperties:
158-
159-
# Set the name of/path to the font.
147+
# https://matplotlib.org/stable/api/_as_gen/
148+
# matplotlib.axes.Axes.set_xticklabels.html
149+
options:
150+
151+
# Set the rotation of the ticks' labels.
160152
#
161-
# Type: str.
153+
# Type: float.
162154
#
163-
# Default: !!null (the default Matplotlib font will be used).
164-
fname: !!null
165-
166-
# Set the font size.
155+
# Default: 0.0.
156+
rotation: 0.0
157+
158+
# Set the properties of the font of the ticks' labels.
167159
#
168-
# Type: int.
160+
# All the availabe options for the properties can be found at:
169161
#
170-
# Default: 10.
171-
size: 8
162+
# https://matplotlib.org/stable/api/
163+
# font_manager_api.html#matplotlib.font_manager.FontProperties
164+
fontproperties:
165+
166+
# Set the name of/path to the font.
167+
#
168+
# Type: str.
169+
#
170+
# Default: !!null (the default Matplotlib font will be used).
171+
fname: !!null
172+
173+
# Set the font size.
174+
#
175+
# Type: int.
176+
#
177+
# Default: 10.
178+
size: 8
179+
180+
#-----------------------------------------------------------------#
172181

173182
# Set the options for the interval represented on the axis.
174183
interval:
@@ -185,7 +194,8 @@ plot:
185194
type: discrete
186195

187196

188-
#-------------------------------------------------------------------#
197+
#####################################################################
198+
189199

190200
# Set the options for the y-axis.
191201
yaxis:
@@ -228,45 +238,52 @@ plot:
228238
#
229239
# Default: 10.
230240
size: 10
241+
242+
#-----------------------------------------------------------------#
231243

232-
# Set the options for the ticks' labels (passed to
233-
# 'matplotlib.axes.Axes.set_yticklabels').
234-
#
235-
# All the available options to set up the ticks' labels can be
236-
# found at:
237-
#
238-
# https://matplotlib.org/stable/api/_as_gen/
239-
# matplotlib.axes.Axes.set_yticklabels.html
244+
# Set the ticks' labels.
240245
ticklabels:
241-
242-
# Set the rotation of the ticks' labels.
243-
#
244-
# Type: float.
245-
#
246-
# Default: 0.0.
247-
rotation: 0.0
248246

249-
# Set the properties of the font of the ticks' labels.
247+
# Set the options for the ticks' labels (passed to
248+
# 'matplotlib.axes.Axes.set_yticklabels').
250249
#
251-
# All the availabe options for the properties can be found at:
250+
# All the available options to set up the ticks' labels can be
251+
# found at:
252252
#
253-
# https://matplotlib.org/stable/api/
254-
# font_manager_api.html#matplotlib.font_manager.FontProperties
255-
fontproperties:
256-
257-
# Set the name of/path to the font.
253+
# https://matplotlib.org/stable/api/_as_gen/
254+
# matplotlib.axes.Axes.set_yticklabels.html
255+
options:
256+
257+
# Set the rotation of the ticks' labels.
258258
#
259-
# Type: str.
259+
# Type: float.
260260
#
261-
# Default: !!null (the default Matplotlib font will be used).
262-
fname: !!null
263-
264-
# Set the font size.
261+
# Default: 0.0.
262+
rotation: 0.0
263+
264+
# Set the properties of the font of the ticks' labels.
265265
#
266-
# Type: int.
266+
# All the availabe options for the properties can be found at:
267267
#
268-
# Default: 10.
269-
size: 8
268+
# https://matplotlib.org/stable/api/
269+
# font_manager_api.html#matplotlib.font_manager.FontProperties
270+
fontproperties:
271+
272+
# Set the name of/path to the font.
273+
#
274+
# Type: str.
275+
#
276+
# Default: !!null (the default Matplotlib font will be used).
277+
fname: !!null
278+
279+
# Set the font size.
280+
#
281+
# Type: int.
282+
#
283+
# Default: 10.
284+
size: 8
285+
286+
#-----------------------------------------------------------------#
270287

271288
# Set the options for the interval represented on the axis.
272289
interval:

0 commit comments

Comments
 (0)