-
Notifications
You must be signed in to change notification settings - Fork 235
Closed
Labels
discussionsNeed more discussion before taking further actionsNeed more discussion before taking further actions
Milestone
Description
In the Contributors Guide in the section Code Style:
When wrapping a new alias, use an underscore to separate words bridged by vowels (aeiou), such as no_skip and z_only. Do not use an underscore to separate words bridged only by consonants, such as distcalc, and crossprofile. This convention is not applied by the code checking tools, but the PyGMT maintainers will comment on any pull requests as needed.
However, some aliases seem not to follow this convention. For example:
pygmt.Figure.plot():straight_line(A) ,error_bar(E),nodata(d)
Following the convention, they should bestraigthline,errorbar,no_datapygmt.Figure.rose():vector_params(M)
Should bevectorparams.
Please note: This is primarily meant as a general question for understanding, rather than a request for renaming these aliases. π
Overview table
- βοΈ: Changed (PR merged)
- π: TODO / WIP (PR planed or opened)
- β: Need disscussion
- π§: Need to wait (PR converted to draft)
- β: Not changed
: Already fine
Click to show the table
| status | old name | new name | PR | comment |
|---|---|---|---|---|
above |
||||
| β | alabel |
a_label |
see also blabel, clabel |
|
aliases |
||||
alpha |
||||
angle |
||||
annotate |
||||
annotation |
||||
anti_alias |
||||
anti_aliasing |
||||
area_thresh |
||||
aspatial |
||||
| π§ | autolabel |
auto_label |
#4275 | not Pythonic yet |
azimuth |
||||
background |
||||
| βοΈ | barwidth |
bar_width |
#4279 | split into bar_width and bar_offset in second PR |
bb_style |
||||
below |
||||
between |
||||
binary |
||||
| π§ | bitcolor |
bit_color |
#4280 | not Pythonic yet |
| β | blabel |
see also alabel, clabel |
||
| βοΈ | bordervalues |
border_values |
#4281 | |
borders |
||||
box |
||||
categorical |
||||
center |
||||
circ_subregion |
||||
| β | clabel |
c_label |
see also alabel, blabel |
|
clearance |
||||
close |
||||
cmap |
||||
color_model |
||||
| β | coltypes |
col_types, column_types |
shortcut | |
| π§ | combitable |
combi_table |
#4293 | pygmt.x2sys_cross; need suitable name |
compass |
||||
component |
||||
| βοΈ | compressionfill |
compression_fill |
#4269 | |
connection |
||||
| βοΈ | constantfill |
constant_fill |
#4273 | |
continuous |
||||
contour |
||||
| βοΈ | contourpen |
contour_pen |
#4260 | |
convention |
||||
convergence |
||||
cores |
||||
critical |
||||
crop |
||||
| π§ | crossprofile |
cross_profile |
#4278 | not Pythonic yet |
crs |
||||
| β | cstyle |
c_style |
||
cumulative |
||||
cyclic |
||||
data |
||||
data_source |
||||
dcw |
||||
depth |
||||
| β | dfile |
d_file |
||
diameter |
||||
direction |
||||
discontinuity |
||||
dist2line |
||||
dist2pt |
||||
distance |
||||
| β | distcalc |
dist_calc |
shortcut | |
distribution |
||||
distribution_name |
||||
download |
||||
dpi |
||||
| βοΈ | drapegrid |
drape_grid |
#4276 | |
duplicate |
||||
ellipse |
||||
empty |
||||
| βοΈ | endpoint |
end_point |
partly written as one word | |
| π§ | equalsize |
equal_size |
#4277 | not Pythonic yet |
error_bar |
||||
event_name |
||||
extend |
||||
| βοΈ | extensionfill |
extension_fill |
#4269 | |
extreme |
||||
| βοΈ | - | facade_fill |
#4235 | split -N into plane and facade_fill |
| βοΈ | facadepen |
facade_pen |
#4260 | |
| β | figsize |
fig_size |
||
fill |
||||
filter |
||||
filter_type |
||||
find |
||||
| π§ | fixedlabel |
fixed_label |
#4275 | not Pythonic yet |
flat_earth |
||||
fmt |
||||
| β | fmtfile |
fmt_file |
shortcut | |
| β | fname |
fig_name |
shortcut | |
font |
||||
force |
||||
force_scan |
||||
frame |
||||
gap |
||||
generate |
||||
geographic |
||||
grid |
||||
| βοΈ | gridfill |
grid_fill |
#4273 | |
gs_option |
||||
gs_path |
||||
gs_version |
||||
header |
||||
| β | histtype |
hist_type |
shortcut | |
hole |
||||
horizontal |
||||
image |
||||
| β | imagefile |
image_file |
see also textfiles, worldfile |
|
img_in |
-D of Figure.grdimage |
|||
incols |
||||
inquire |
||||
intensity |
||||
interpolation |
||||
inverse |
||||
justify |
||||
label |
||||
| βοΈ | labelbox |
label_box |
#4274 | |
label_placement |
||||
labels |
||||
lakes |
||||
land |
||||
latitude |
||||
length |
||||
levels |
||||
limit |
||||
log |
||||
longitude |
||||
| β | lonlat |
lon_lat |
shortcut | |
lower |
||||
map_scale |
||||
| βοΈ | margin |
marginsclearance |
#4296 | for -C of Figure.inset, for GMT <= 6.4 it was -M |
margins |
for -M of Figure.subplot |
|||
| βοΈ | grid_mask |
mask_grid |
#4283 | |
| βοΈ | mask |
mask_values |
#4288 | for -N of pygmt.select |
| βοΈ | maskvalues |
mask_values |
#4281 | for -N of pygmt.grdlandmask |
max_retries |
||||
| βοΈ | maxradius |
max_radius |
#4300 | consistency |
| βοΈ | meshpen |
mesh_pen |
#4260 | |
method |
||||
monochrome |
||||
nan_transparent |
||||
nans |
||||
| β | ncols |
n_cols |
||
nearest_multiple |
||||
| βοΈ | fillnegative |
negative_fill |
#4271 | |
| βοΈ | neighborfill |
neighbor_fill |
#4271 | |
| βοΈ | newcolname |
new_col_name |
see event_name, distribution_name |
|
| β | nlevels |
n_levels |
||
no_bg |
||||
no_clip |
||||
no_scale |
||||
no_skip |
||||
no_sort |
||||
nodal |
||||
| β | nodata |
no_data |
used in too many functions | |
no_data |
for -N of pygmt.grdfill, deprecated to hole in v0.19.0 |
|||
node_table |
||||
norm |
||||
normalize |
||||
| β | nrows |
n_rows |
||
| π§ | numpoints |
num_points |
-W of pygmt.x2sys_cross; need suitable name |
|
offset |
||||
orientation |
||||
outcols |
||||
outfile |
||||
outgrid |
||||
outline |
||||
output |
||||
output_type |
||||
override |
||||
overrule_bg |
||||
panel |
||||
pen |
||||
per_column |
||||
perspective |
||||
plane |
||||
plot_latitude |
||||
plot_longitude |
||||
points |
||||
pole |
||||
polygon |
||||
position |
||||
| βοΈ | fillpositive |
positive_fill |
#4271 | |
prefix |
||||
profile |
||||
projection |
||||
quantile_value |
||||
quantity |
||||
radiance |
||||
radius |
||||
region |
||||
registration |
||||
replace |
||||
required |
||||
resample |
||||
rescale |
||||
resize |
||||
resolution |
||||
reverse |
||||
rivers |
||||
rose |
||||
| β | runtimes |
run_times |
#4294 | -C of Figure.x2sys_cross; in Computer Sciences one word |
scale |
||||
scaling |
||||
search_radius |
||||
sector |
-A of Figure.rose |
|||
sectors |
-N of pygmt.dimfilter |
|||
series |
||||
shading |
||||
| β | sharex |
share_x |
||
| β | sharey |
share_y |
||
shift |
||||
shorelines |
||||
show |
||||
single_form |
||||
size |
||||
skip |
||||
| β | skiprows |
skip_rows |
#4295 | used in five functions |
slope_file |
||||
sort |
||||
source |
||||
spacing |
||||
spec |
||||
speed |
||||
| βοΈ | splinefill |
spline_fill |
#4273 | |
stack |
||||
stairs |
||||
statistic |
||||
straight_line |
||||
style |
||||
| β | subsize |
sub_size |
||
suffix |
||||
summary |
||||
| β | surftype |
surf_type |
shortcut | |
symbol |
||||
tag |
||||
tension |
||||
terminator |
||||
terminator_datetime |
||||
text |
||||
| β | textfiles |
text_files |
see also imagefile, worldfile |
|
tiles |
||||
time_col |
||||
| β β | timefmt |
time_fmt |
shortcut | |
title |
||||
toggle |
||||
track |
||||
| βοΈ | trackvalues |
track_values |
#4282 | |
tracks |
||||
transparency |
||||
transparent |
||||
triangular_mesh_pen |
||||
truncate |
||||
uncertainty |
||||
| βοΈ | uncertaintyfill |
uncertainty_fill |
#4272 | |
| π§ | unit |
units |
#4297 | for Q of pygmt.project; need suitable name |
| `unit | for -M of pygmt.grdproject, -L of pygmt.sphdistance |
|||
units |
for -M of pygmt.x2sys_init |
|||
upper |
||||
use_srtm |
||||
use_word |
||||
vector |
-A of Figure.veloc |
|||
vector_params |
||||
vectors |
-Em of Figure.rose |
|||
verbose |
||||
voronoi |
||||
wait |
||||
water |
||||
weight |
||||
width |
||||
| ββ | worldfile |
world_file |
see also imagefile, textfiles |
|
wrap |
||||
x |
||||
| β | xmax |
x_max |
||
| β | xmin |
x_min |
||
| β | xshift |
x_shift |
||
y |
||||
| β | ymax |
y_max |
||
| β | ymin |
y_min |
||
| β | yshift |
y_shift |
||
z |
||||
z_only |
||||
z_subregion |
||||
| β | zfile |
z_file |
||
zoom |
||||
zoom_adjust |
||||
| β | zscale |
z_scale |
||
| β | zsize |
z_size |
||
| β | zvalue |
z_value |
Metadata
Metadata
Assignees
Labels
discussionsNeed more discussion before taking further actionsNeed more discussion before taking further actions