From a14ffe9eb9e6f690a77479c80e73bdb97fa62422 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Wed, 23 Jun 2021 08:44:37 -0400 Subject: [PATCH] Add 'LogarithmPlotter file format v1.0' --- LogarithmPlotter-file-format-v1.0.md | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 LogarithmPlotter-file-format-v1.0.md diff --git a/LogarithmPlotter-file-format-v1.0.md b/LogarithmPlotter-file-format-v1.0.md new file mode 100644 index 0000000..8db2ed1 --- /dev/null +++ b/LogarithmPlotter-file-format-v1.0.md @@ -0,0 +1,29 @@ +# LogarithmPlotter file format v1.0 +LogarithmPlotter files (with the extension .lpf, .lgg, .json), are json-encoded files. + +JSON Tree: + + top level + ├─ type: "logplotv1" + ├─ width: width in pixels of the plot. + ├─ height: height in pixels of the plot. + ├─ xzoom: Number of pixels between each unit on the x axis. + ├─ yzoom: Number of pixels between each unit on the y axis. + ├─ xmin: Minimum x coordinate from which the plot should draw. + ├─ ymax: Maximum y coordinate from which the plot should draw. + ├─ yaxisstep: distance between each graduation in the y axis. String because it's an expression (e.g. 1/2, pi+1). + ├─ xaxisstep: (only in non-logarithmic scale) Distance between each graduation in the x axis. + ├─ xaxislabel: Label used for the x axis. + ├─ yaxislabel: Label used for the y axis. + ├─ logscalex: When true, the x axis is rendered with a logarithmic scale. + ├─ linewidth: Weight of elements drawn on the plot (line width, dot's size...). + ├─ showxgrad: When false, hides numbers from the x axis' graduation. + ├─ showygrad: When false, hides numbers from the y axis' graduation. + ├─ textsize: Base font size for the text drawn on the plot.. + ├─ history: Root items from history + │ ├─ 0: stack of undo actions (from most ancient to most recent) + │ │ └─ History action: [history action type, list of arguments for corresponding history action type] + │ └─ 1: stack of redo actions (from most advanced to now) + │ └─ History action: [history action type, list of arguments for corresponding history action type] + └─ objects: dictionary of actions with their property (from most advanced to now) + └─ key: object type, value: list of arguments for corresponding object type \ No newline at end of file