FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

suppress point sample in key for plots with title "at end|beg" · gnuplot/gnuplot@da890a6 · GitHub

Repository navigation

Commit da890a6

Browse files
Ethan A Merritt
committed
suppress point sample in key for plots with title "at end|beg"
1 parent f283cdc commit da890a6

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎src/boundary.c‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,9 +1358,13 @@ do_key_sample_point(
13581358
{
13591359
struct termentry *t = term;
13601360

1361-
/* If the plot this title belongs to specified a non-standard place */
1362-
/* for the key sample to appear, use that to override xl, yl. */
1363-
if (this_plot->title_position && this_plot->title_position->scalex != character) {
1361+
/* If the plot this title belongs to specified a non-standard place
1362+
* for the key sample to appear, use that to override xl, yl.
1363+
* For "at end|beg" do nothing at all.
1364+
*/
1365+
if (this_plot->title_position) {
1366+
if (this_plot->title_position->scalex == character)
1367+
return;
13641368
map_position(this_plot->title_position, &xl, &yl, "key sample");
13651369
xl -= (key->just == GPKEY_LEFT) ? key_text_left : key_text_right;
13661370
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL