Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
eltos committed Oct 11, 2023
1 parent 5d237fd commit 8ae6a5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xplt/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ def label_for_axes(self, description=True):
user_properties = {}


def register_property(name, unit, symbol=None, description=None):
def register_property(key, unit, symbol=None, description=None):
"""Register a user defined property unit
Args:
name (str): Property name
key (str): Property key as used in `kind` string
unit (str): Unit of data values associated with this property
symbol (str, optional): Symbol to display in plots, e.g. $a_1$
description (str, optional): Description
"""
user_properties[name] = Prop(symbol or name, unit, description)
user_properties[key] = Prop(symbol or key, unit, description)


@dataclass
Expand Down

0 comments on commit 8ae6a5f

Please sign in to comment.