Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 31 additions & 10 deletions plotpy/locale/fr/LC_MESSAGES/plotpy.po
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,15 @@ msgstr "Police des valeurs"
msgid "Scale"
msgstr "Échelle"

msgid "logarithmic"
msgstr "logarithmique"

msgid "linear"
msgstr "linéaire"

msgid "date/time"
msgstr "date/heure"

msgid "logarithmic"
msgstr "logarithmique"

msgid "Lower axis limit"
msgstr "Borne inférieure de l'axe"

Expand Down Expand Up @@ -630,12 +630,12 @@ msgstr "Classes"
msgid "Number of bins"
msgstr "Nombre de classes"

msgid "Minimum value"
msgstr "Valeur minimale"

msgid "Min"
msgstr "Min"

msgid "Minimum value"
msgstr "Valeur minimale"

msgid "Maximum value"
msgstr "Valeur maximale"

Expand Down Expand Up @@ -1422,12 +1422,11 @@ msgid ""
"<b>Keyboard/mouse shortcuts:</b><br><br>\n"
" - <u>single left-click</u>: item (curve, image, ...) selection<br>\n"
" - <u>single right-click</u>: context-menu relative to selected item<br>\n"
" - <u>shift</u>: on-active-curve (or image) cursor (+ <u>control</u> to maintain\n"
"cursor visible)<br>\n"
" - <u>shift + control</u>: on-active-curve cursor (+ <u>control</u> to maintain\n"
"cursor visible)<br>\n"
" - <u>shift</u>: on-active-curve (or image) cursor<br>\n"
" - <u>shift + control</u>: on-active-curve cursor (maintained visible)<br>\n"
" - <u>alt</u>: free cursor<br>\n"
" - <u>left-click + mouse move</u>: move item (when available)<br>\n"
" - <u>control + left-click + mouse move</u>: move label on markers and range selections<br>\n"
" - <u>middle-click + mouse move</u>: pan<br>\n"
" - <u>right-click + mouse move</u>: zoom"
msgstr ""
Expand Down Expand Up @@ -1687,3 +1686,25 @@ msgstr "Rotation et rognage"
msgid "Show cropping rectangle"
msgstr "Afficher le rectangle de rognage"

msgid ""
"<b>Keyboard/mouse shortcuts:</b><br><br>\n"
" - <u>single left-click</u>: item (curve, image, ...) selection<br>\n"
" - <u>single right-click</u>: context-menu relative to selected item<br>\n"
" - <u>shift</u>: on-active-curve (or image) cursor (+ <u>control</u> to maintain\n"
"cursor visible)<br>\n"
" - <u>shift + control</u>: on-active-curve cursor (+ <u>control</u> to maintain\n"
"cursor visible)<br>\n"
" - <u>alt</u>: free cursor<br>\n"
" - <u>left-click + mouse move</u>: move item (when available)<br>\n"
" - <u>middle-click + mouse move</u>: pan<br>\n"
" - <u>right-click + mouse move</u>: zoom"
msgstr ""
"<b>Raccourcis clavier et souris :</b><br><br>\n"
" - <u>clique gauche</u> : sélection d'un objet (courbe, image, ...)<br>\n"
" - <u>clique droit</u> : menu contextuel relatif à l'objet sélectionné<br>\n"
" - <u>shift</u> : curseur sur la courbe (ou l'image) active (+ <u>control</u> pour maintenir le curseur visible)<br>\n"
" - <u>shift + control</u> : curseur sur la courbe (ou l'image) active (+ <u>control</u> pour maintenir le curseur visible)<br>\n"
" - <u>alt</u> : curseur libre<br>\n"
" - <u>clique gauche + déplacement souris</u> : déplacement de l'objet actif (si possible)<br>\n"
" - <u>clique du milieu + déplacement souris</u> : translation dans le plan ('pan')<br>\n"
" - <u>clique droit + déplacement souris</u> : agrandissement ('zoom')"
18 changes: 9 additions & 9 deletions plotpy/tools/curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ class CurveStatsTool(BaseRangeCursorTool):
TITLE = _("Signal statistics")
ICON = "xrange.png"
LABELFUNCS: tuple[tuple[str, Callable[..., Any]], ...] = (
("%g &lt; x &lt; %g", lambda *args: (args[0].min(), args[0].max())),
("%g &lt; y &lt; %g", lambda *args: (args[1].min(), args[1].max())),
("∆x=%g", lambda *args: args[0].max() - args[0].min()),
("∆y=%g", lambda *args: args[1].max() - args[1].min()),
("&lt;y&gt;=%g", lambda *args: args[1].mean()),
("σ(y)=%g", lambda *args: args[1].std()),
("∑(y)=%g", lambda *args: np.sum(args[1])),
("%g &lt; x &lt; %g", lambda *args: (np.nanmin(args[0]), np.nanmax(args[0]))),
("%g &lt; y &lt; %g", lambda *args: (np.nanmin(args[1]), np.nanmax(args[1]))),
("∆x=%g", lambda *args: np.nanmax(args[0]) - np.nanmin(args[0])),
("∆y=%g", lambda *args: np.nanmax(args[1]) - np.nanmin(args[1])),
("&lt;y&gt;=%g", lambda *args: np.nanmean(args[1])),
("σ(y)=%g", lambda *args: np.nanstd(args[1])),
("∑(y)=%g", lambda *args: np.nansum(args[1])),
("∫ydx=%g", lambda *args: spt.trapezoid(args[1], args[0])),
)
SHAPECLASS = XRangeSelection
Expand Down Expand Up @@ -212,8 +212,8 @@ class YRangeCursorTool(BaseRangeCursorTool):
TITLE = _("Y-range")
ICON = "yrange.png"
LABELFUNCS: tuple[tuple[str, Callable[..., Any]], ...] = (
("%g &lt; y &lt; %g", lambda ymin, ymax: (ymin, ymax)),
("∆y=%g", lambda ymin, ymax: ymax - ymin),
("%g &lt; y &lt; %g", lambda ymin, ymax: (min(ymin, ymax), max(ymin, ymax))),
("∆y=%g", lambda ymin, ymax: abs(ymax - ymin)),
)
SHAPECLASS = YRangeSelection

Expand Down
3 changes: 2 additions & 1 deletion scripts/reinstall_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Reinstall multiple local libraries in editable mode for development.

Workflow:
1) Try to uninstall all target libraries in one command (ignore errors if some are not installed).
1) Try to uninstall all target libraries in one command (ignore errors if some are
not installed).
2) Reinstall each library in editable mode from a sibling folder: ../<library>.

This script uses the same Python interpreter that runs it (sys.executable),
Expand Down
Loading