@@ -227,7 +227,7 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915
227
227
228
228
Parameters
229
229
----------
230
- spec : str, 1-D array, 2-D array, dict, or pd .DataFrame
230
+ spec : str, 1-D array, 2-D array, dict, or :class:`pandas .DataFrame`
231
231
Data that contain focal mechanism parameters.
232
232
233
233
``spec`` can be specified in either of the following types:
@@ -250,9 +250,10 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915
250
250
The meanings of columns are the same as above.
251
251
- *2-D array*: focal mechanism parameters of multiple events.
252
252
The meanings of columns are the same as above.
253
- - *dictionary or pd.DataFrame*: The dictionary keys or pd.DataFrame
254
- column names determine the focal mechanism convention. For
255
- different conventions, the following combination of keys are allowed:
253
+ - *dictionary or :class:`pandas.DataFrame`*: The dictionary keys or
254
+ :class:`pandas.DataFrame` column names determine the focal mechanism
255
+ convention. For different conventions, the following combination of
256
+ keys are allowed:
256
257
257
258
- ``"aki"``: *strike, dip, rake, magnitude*
258
259
- ``"gcmt"``: *strike1, dip1, rake1, strike2, dip2, rake2, mantissa,*
@@ -265,13 +266,13 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915
265
266
A dictionary may contain values for a single focal mechanism or
266
267
lists of values for multiple focal mechanisms.
267
268
268
- Both dictionary and pd .DataFrame may optionally contain
269
+ Both dictionary and :class:`pandas .DataFrame` may optionally contain
269
270
keys/column names: ``latitude``, ``longitude``, ``depth``,
270
271
``plot_longitude``, ``plot_latitude``, and/or ``event_name``.
271
272
272
273
If ``spec`` is either a str, a 1-D array or a 2-D array, the
273
274
``convention`` parameter is required so we know how to interpret the
274
- columns. If ``spec`` is a dictionary or a pd .DataFrame,
275
+ columns. If ``spec`` is a dictionary or a :class:`pandas .DataFrame` ,
275
276
``convention`` is not needed and is ignored if specified.
276
277
scale : float or str
277
278
*scale*\ [**+a**\ *angle*][**+f**\ *font*][**+j**\ *justify*]\
@@ -299,7 +300,7 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915
299
300
- ``"partial"`` (partial focal mechanism)
300
301
- ``"principal_axis"`` (principal axis)
301
302
302
- Ignored if ``spec`` is a dictionary or pd .DataFrame.
303
+ Ignored if ``spec`` is a dictionary or :class:`pandas .DataFrame` .
303
304
component : str
304
305
The component of the seismic moment tensor to plot.
305
306
@@ -310,28 +311,28 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915
310
311
longitude : float, list, or 1-D numpy array
311
312
Longitude(s) of event location(s). Must be the same length as the
312
313
number of events. Will override the ``longitude`` values
313
- in ``spec`` if ``spec`` is a dictionary or pd .DataFrame.
314
+ in ``spec`` if ``spec`` is a dictionary or :class:`pandas .DataFrame` .
314
315
latitude : float, list, or 1-D numpy array
315
316
Latitude(s) of event location(s). Must be the same length as the
316
317
number of events. Will override the ``latitude`` values
317
- in ``spec`` if ``spec`` is a dictionary or pd .DataFrame.
318
+ in ``spec`` if ``spec`` is a dictionary or :class:`pandas .DataFrame` .
318
319
depth : float, list, or 1-D numpy array
319
320
Depth(s) of event location(s) in kilometers. Must be the same length
320
321
as the number of events. Will override the ``depth`` values in ``spec``
321
- if ``spec`` is a dictionary or pd .DataFrame.
322
+ if ``spec`` is a dictionary or :class:`pandas .DataFrame` .
322
323
plot_longitude : float, str, list, or 1-D numpy array
323
324
Longitude(s) at which to place beachball(s). Must be the same length
324
325
as the number of events. Will override the ``plot_longitude`` values
325
- in ``spec`` if ``spec`` is a dictionary or pd .DataFrame.
326
+ in ``spec`` if ``spec`` is a dictionary or :class:`pandas .DataFrame` .
326
327
plot_latitude : float, str, list, or 1-D numpy array
327
328
Latitude(s) at which to place beachball(s). List must be the same
328
329
length as the number of events. Will override the ``plot_latitude``
329
- values in ``spec`` if ``spec`` is a dictionary or pd .DataFrame.
330
+ values in ``spec`` if ``spec`` is a dictionary or :class:`pandas .DataFrame` .
330
331
event_name : str, list of str, or 1-D numpy array
331
332
Text string(s), e.g., event name(s) to appear near the beachball(s).
332
333
List must be the same length as the number of events. Will override
333
334
the ``event_name`` labels in ``spec`` if ``spec`` is a dictionary
334
- or pd .DataFrame.
335
+ or :class:`pandas .DataFrame` .
335
336
labelbox : bool or str
336
337
[*fill*].
337
338
Draw a box behind the label if given. Use *fill* to give a fill color
0 commit comments