From 491760347827150a8288f7b806590d1e2e84469b Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 4 Apr 2020 13:00:27 -0400 Subject: [PATCH] ncplot: swap NCPLOT_2x1 and NCPLOT_1x1x4 --- doc/man/man3/notcurses_plot.3.md | 2 +- include/notcurses/notcurses.h | 2 +- python/src/notcurses/build_notcurses.py | 2 +- src/lib/plot.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/man/man3/notcurses_plot.3.md b/doc/man/man3/notcurses_plot.3.md index 0370f5a05..18c5fd4e5 100644 --- a/doc/man/man3/notcurses_plot.3.md +++ b/doc/man/man3/notcurses_plot.3.md @@ -13,8 +13,8 @@ notcurses_plot - high level widget for plotting ```c typedef enum { NCPLOT_1x1, // full block █ - NCPLOT_1x1x4, // shaded full blocks █▓▒░ NCPLOT_2x1, // full/lower blocks █▄ + NCPLOT_1x1x4, // shaded full blocks █▓▒░ NCPLOT_4x1, // four vert levels █▆▄▂ NCPLOT_8x1, // eight vert levels █▇▆▅▄▃▂▁ } ncgridgeom_e; diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index 054b4a0a3..3fdb775be 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -2472,8 +2472,8 @@ API int ncmenu_destroy(struct ncmenu* n); // states: empty, the three shaded blocks, and the full block. typedef enum { NCPLOT_1x1, // full block █ - NCPLOT_1x1x4, // shaded full blocks █▓▒░ NCPLOT_2x1, // full/(upper|left) blocks █▀ + NCPLOT_1x1x4, // shaded full blocks █▓▒░ //NCPLOT_2x2, // quadrants ▖▘▝▗ ▛ ▜ ▟ ▙ ▘▗ ▖▝ NCPLOT_4x1, // four vert/horz levels █▆▄▂ / ▎▌▊█ NCPLOT_8x1, // eight vert/horz levels █▇▆▅▄▃▂▁ / ▏▎▍▌▋▊▉█ diff --git a/python/src/notcurses/build_notcurses.py b/python/src/notcurses/build_notcurses.py index aeb0d5cc6..610aa0738 100644 --- a/python/src/notcurses/build_notcurses.py +++ b/python/src/notcurses/build_notcurses.py @@ -412,8 +412,8 @@ void ncplane_translate(const struct ncplane* src, const struct ncplane* dst, int bool ncplane_translate_abs(const struct ncplane* n, int* y, int* x); typedef enum { NCPLOT_1x1, // full block █ - NCPLOT_1x1x4, // shaded full blocks █▓▒░ NCPLOT_2x1, // full/(upper|left) blocks █▀ + NCPLOT_1x1x4, // shaded full blocks █▓▒░ NCPLOT_4x1, // four vert/horz levels █▆▄▂ / ▎▌▊█ NCPLOT_8x1, // eight vert/horz levels █▇▆▅▄▃▂▁ / ▏▎▍▌▋▊▉█ } ncgridgeom_e; diff --git a/src/lib/plot.c b/src/lib/plot.c index 6c3f42f4f..d563b82e5 100644 --- a/src/lib/plot.c +++ b/src/lib/plot.c @@ -5,8 +5,8 @@ static const struct { const wchar_t* egcs; } geomdata[] = { { .geom = NCPLOT_1x1, .egcs = L"█", }, - { .geom = NCPLOT_1x1x4, .egcs = L"▒░▓█", }, { .geom = NCPLOT_2x1, .egcs = L"▄█", }, + { .geom = NCPLOT_1x1x4, .egcs = L"▒░▓█", }, { .geom = NCPLOT_4x1, .egcs = L"▂▄▆█", }, { .geom = NCPLOT_8x1, .egcs = L"▁▂▃▄▅▆▇█", }, };