refactor: move external packages to package-index

This commit is contained in:
Shunsuke Shibayama 2024-02-10 20:12:55 +09:00
parent 6b681c5fd1
commit 12a425a8da
116 changed files with 0 additions and 1031 deletions

View file

@ -1,4 +0,0 @@
.pyplot = pyimport "./pyplot"
.scale = pyimport "./scale"
.use!: Str => NoneType

View file

@ -1,3 +0,0 @@
._axes = pyimport "./_axes"
.Axes! = ._axes.Axes!

View file

@ -1,21 +0,0 @@
.Axes!: ClassType
.Axes!.
scatter!: (
self: RefMut(.Axes!),
x: Num, # TODO: Float | ArrayLike
y: Num,
s := Num,
c := Iterable(Int),
vmin := Float,
vmax := Float,
) => NoneType
set!: (
self: RefMut(.Axes!),
xlabel := Str,
xlim := (Float, Float),
xticks := Iterable(Obj),
ylabel := Str,
ylim := (Float, Float),
yticks := Iterable(Obj),
title := Str
) => NoneType

View file

@ -1,5 +0,0 @@
axes = pyimport "./axes"
.Figure!: ClassType
.Figure!.
add_axes!: (self: RefMut(.Figure!), rect: [Nat; 4], projection := Str or NoneType, polar := Bool, label := Str) => axes.Axes!

View file

@ -1,4 +0,0 @@
_ImageBase: ClassType
.AxesImage!: ClassType
.AxesImage! <: _ImageBase

View file

@ -1 +0,0 @@
.Legend: ClassType

View file

@ -1,2 +0,0 @@
.Line2D: ClassType
.Line3D: ClassType

View file

@ -1,30 +0,0 @@
contextlib = pyimport "contextlib"
# lines = pyimport "../lines"
text = pyimport "../text"
legend = pyimport "../legend"
.style = pyimport "../style"
figure = pyimport "../figure"
axes = pyimport "../axes"
image = pyimport "../image"
.plot!: (*args: Obj, scaleX := Bool, scaleY := Bool) => [Obj; _]
.imshow!: (X: Obj, cmap := Str, interpolation := Str) => image.AxesImage!
.show!: () => NoneType
.text!: (x: Float, y: Float, s: Str, fontdict := {Str: Obj}, fontsize := Nat) => text.Text
.title!: (title: Str) => text.Text
.xlabel!: (label: Str) => text.Text
.ylabel!: (label: Str) => text.Text
.xlim!: (left := Float, right := Float) => (Float, Float) \
and ((left_right: (Float, Float)) => (Float, Float))
.ylim!: (bottom := Float, top := Float) => (Float, Float) \
and ((bottom_top: (Float, Float)) => (Float, Float))
.legend!: (labels := [Str; _]) => legend.Legend
.savefig!: (fname: Str, dpi := Float or Str, format := Str) => NoneType
.subplots!: (() => (figure.Figure!, axes.Axes!)) \
and ((nrows: {1}, ncols: {1}) => (figure.Figure!, axes.Axes!)) \
and ((nrows: {1}, ncols: Nat) => (figure.Figure!, [axes.Axes!; _])) \
and ((nrows: Nat, ncols: {1}) => (figure.Figure!, [axes.Axes!; _])) \
and ((nrows: Nat, ncols: Nat) => (figure.Figure!, [[axes.Axes!; _]; _]))
.figure!: (num := Int or Str, figsize := [Float; _], dpi := Float) => figure.Figure!
.xkcd!: (scale := Float, length := Float, randomness := Float) => contextlib.ExitStack!

View file

@ -1 +0,0 @@
.use!: Str => NoneType

View file

@ -1 +0,0 @@
.Text: ClassType