Skip to content

Commit 8fc78d5

Browse files
committed
usvg name change
1 parent f52048e commit 8fc78d5

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

circuitpython_uplot/usvg.py renamed to circuitpython_uplot/svg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
"""
66
7-
`usvg`
7+
`svg`
88
================================================================================
99
1010
CircuitPython svg icon utility for CircuitPython_uplot
@@ -26,7 +26,7 @@
2626

2727
# pylint: disable=too-many-arguments, invalid-name, no-self-use, too-few-public-methods
2828
# pylint: disable=too-many-locals, too-many-branches, protected-access, unnecessary-list-index-lookup
29-
class usvg:
29+
class SVG:
3030
"""
3131
class to render svg images in the plot area
3232
"""

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Uplot Library
2525
.. automodule:: circuitpython_uplot.logging
2626
:members:
2727

28-
.. automodule:: circuitpython_uplot.usvg
28+
.. automodule:: circuitpython_uplot.svg
2929
:members:
3030

3131
.. automodule:: circuitpython_uplot.shade

docs/examples.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,10 @@ SVG Images examples
294294

295295
SVG Images example
296296

297-
.. literalinclude:: ../examples/uplot_usvg_example.py
298-
:caption: examples/uplot_usvg_example.py
297+
.. literalinclude:: ../examples/uplot_svg_example.py
298+
:caption: examples/uplot_svg_example.py
299299
:lines: 5-
300-
.. image:: ../docs/uplot_ex23.jpg
300+
.. image:: ../docs/uplot_svg.jpg
301301

302302
Shade examples
303303
---------------------------

docs/quick_start.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,10 @@ For example, if you want to load the Temperature icon with a scale of 2
497497

498498
.. code-block:: python
499499
500-
from circuitpython_uplot.usvg import usvg
500+
from circuitpython_uplot.svg import SVG
501501
from circuitpython_uplot.icons import Temperature
502502
503503
display = board.DISPLAY
504504
plot = Uplot(0, 0, display.width, display.height)
505-
usvg(plot, Temperature, 250, 50, 2)
505+
SVG(plot, Temperature, 250, 50, 2)
506506
display.show(plot)
File renamed without changes.

examples/uplot_usvg_example.py renamed to examples/uplot_svg_example.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
import board
66
from circuitpython_uplot.uplot import Uplot, color
7-
from circuitpython_uplot.usvg import usvg
7+
from circuitpython_uplot.svg import SVG
88
from circuitpython_uplot.icons import FULL, Humidity, Temperature, Temperature2
99

1010

1111
# Setting up the display
1212
display = board.DISPLAY
1313

1414
plot = Uplot(0, 0, display.width, display.height)
15-
usvg(plot, FULL, 50, 50, 2, color.YELLOW)
16-
usvg(plot, Humidity, 150, 50, 2, color.TEAL)
17-
usvg(plot, Temperature, 250, 50, 2, color.GREEN)
15+
SVG(plot, FULL, 50, 50, 2, color.YELLOW)
16+
SVG(plot, Humidity, 150, 50, 2, color.TEAL)
17+
SVG(plot, Temperature, 250, 50, 2, color.GREEN)
1818

19-
usvg(plot, Temperature2, 300, 50, 0.25, color.BLUE)
19+
SVG(plot, Temperature2, 300, 50, 0.25, color.BLUE)
2020
display.show(plot)

0 commit comments

Comments
 (0)