-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// add a note to a paricular place | ||
let line = SymPath({fy: x => 1-x*x, xlim: [-1, 1]}); | ||
let note = Note('1 - x^2', {pos: [0, 1.1], rad: 0.2, latex: true}); | ||
let plot = Plot([line, note], { | ||
aspect: phi, ylim: [0, 1.5], yticks: 4, grid: true, grid_opacity: 0.1 | ||
}); | ||
return Frame(plot, {margin: 0.15}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,8 @@ | |
"Axis", | ||
"Graph", | ||
"Plot", | ||
"BarPlot" | ||
"BarPlot", | ||
"Note" | ||
], | ||
"networks": [ | ||
"Node", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Note | ||
|
||
<span class="inherit">[Place](#Place) > [Container](#Container) > [Element](#Element)</span> | ||
|
||
Place a text note at a particular location with a given size. Simple wrapper around [Place](#Place). Additionally supports LaTeX rendering. | ||
|
||
Positional arguments: | ||
- `text` — text to display | ||
|
||
Keyword arguments (plus any [Place](#Place) arguments): | ||
- `pos`/`rad` = `[0.5, 0.5]` — a position and radius specifying rectangle placement | ||
- `latex` — whether to run through LaTeX renderer |