How to prevent entries in the legend overlapping without white space?












1















I'm setting the legend with 2 entries.
First, I had a problem that there was white space on the left of the first entry and I added 'width -2' in the 'set key' syntax.
After that, the entries are slightly overlapped. The result is:



enter image description here



The 'set key' syntax what I used is:



set key reverse at screen 0.8, 0.05 spacing 1.5 samplen 2 font ",10"
set key box width 1 vertical maxrows 1


What I want is two:




  1. Removing the left white space

  2. Keeping the gap between the legend entries


Thanks!



== Update ==



I modified the 'set key' syntax with @Ethan Merritt's advise.
However, the left white space still remains like this:



enter image description here



I want to reduce the left white space in the key box and to adjust the gap between the entries, like this:



enter image description here



I also update the 'set key' syntax I used above.
Please help me once more.










share|improve this question





























    1















    I'm setting the legend with 2 entries.
    First, I had a problem that there was white space on the left of the first entry and I added 'width -2' in the 'set key' syntax.
    After that, the entries are slightly overlapped. The result is:



    enter image description here



    The 'set key' syntax what I used is:



    set key reverse at screen 0.8, 0.05 spacing 1.5 samplen 2 font ",10"
    set key box width 1 vertical maxrows 1


    What I want is two:




    1. Removing the left white space

    2. Keeping the gap between the legend entries


    Thanks!



    == Update ==



    I modified the 'set key' syntax with @Ethan Merritt's advise.
    However, the left white space still remains like this:



    enter image description here



    I want to reduce the left white space in the key box and to adjust the gap between the entries, like this:



    enter image description here



    I also update the 'set key' syntax I used above.
    Please help me once more.










    share|improve this question



























      1












      1








      1








      I'm setting the legend with 2 entries.
      First, I had a problem that there was white space on the left of the first entry and I added 'width -2' in the 'set key' syntax.
      After that, the entries are slightly overlapped. The result is:



      enter image description here



      The 'set key' syntax what I used is:



      set key reverse at screen 0.8, 0.05 spacing 1.5 samplen 2 font ",10"
      set key box width 1 vertical maxrows 1


      What I want is two:




      1. Removing the left white space

      2. Keeping the gap between the legend entries


      Thanks!



      == Update ==



      I modified the 'set key' syntax with @Ethan Merritt's advise.
      However, the left white space still remains like this:



      enter image description here



      I want to reduce the left white space in the key box and to adjust the gap between the entries, like this:



      enter image description here



      I also update the 'set key' syntax I used above.
      Please help me once more.










      share|improve this question
















      I'm setting the legend with 2 entries.
      First, I had a problem that there was white space on the left of the first entry and I added 'width -2' in the 'set key' syntax.
      After that, the entries are slightly overlapped. The result is:



      enter image description here



      The 'set key' syntax what I used is:



      set key reverse at screen 0.8, 0.05 spacing 1.5 samplen 2 font ",10"
      set key box width 1 vertical maxrows 1


      What I want is two:




      1. Removing the left white space

      2. Keeping the gap between the legend entries


      Thanks!



      == Update ==



      I modified the 'set key' syntax with @Ethan Merritt's advise.
      However, the left white space still remains like this:



      enter image description here



      I want to reduce the left white space in the key box and to adjust the gap between the entries, like this:



      enter image description here



      I also update the 'set key' syntax I used above.
      Please help me once more.







      gnuplot






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 16 '18 at 12:49







      nickeys

















      asked Nov 15 '18 at 12:26









      nickeysnickeys

      5718




      5718
























          1 Answer
          1






          active

          oldest

          votes


















          2














          "remove the left white space" - to left-justify the text, say set key Left.
          This will affect all entries in the key box, not just the leftmost one.



          "keep the gap between entries" - do not squeeze the box with width -2






          share|improve this answer
























          • Thanks for your reply. I'm sorry but, what you mention is not fit for my intention. With your advise, the result does not remove the left white space in the key box, as you say "This will affect all entries in the key box, not just the leftmost one". How can I remove the white space?

            – nickeys
            Nov 16 '18 at 7:15











          • The width of the columns in the key is determined from the length of the longest title. By default the titles are right-justified, so all of them except the longest will have whitespace to the left. If you change to left-justification then all titles will have the same amount whitespace to the left (approx one character width) but will vary in how much space there is between the text and the sample line/point/fill symbol.

            – Ethan
            Nov 16 '18 at 22:11













          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53319503%2fhow-to-prevent-entries-in-the-legend-overlapping-without-white-space%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          "remove the left white space" - to left-justify the text, say set key Left.
          This will affect all entries in the key box, not just the leftmost one.



          "keep the gap between entries" - do not squeeze the box with width -2






          share|improve this answer
























          • Thanks for your reply. I'm sorry but, what you mention is not fit for my intention. With your advise, the result does not remove the left white space in the key box, as you say "This will affect all entries in the key box, not just the leftmost one". How can I remove the white space?

            – nickeys
            Nov 16 '18 at 7:15











          • The width of the columns in the key is determined from the length of the longest title. By default the titles are right-justified, so all of them except the longest will have whitespace to the left. If you change to left-justification then all titles will have the same amount whitespace to the left (approx one character width) but will vary in how much space there is between the text and the sample line/point/fill symbol.

            – Ethan
            Nov 16 '18 at 22:11


















          2














          "remove the left white space" - to left-justify the text, say set key Left.
          This will affect all entries in the key box, not just the leftmost one.



          "keep the gap between entries" - do not squeeze the box with width -2






          share|improve this answer
























          • Thanks for your reply. I'm sorry but, what you mention is not fit for my intention. With your advise, the result does not remove the left white space in the key box, as you say "This will affect all entries in the key box, not just the leftmost one". How can I remove the white space?

            – nickeys
            Nov 16 '18 at 7:15











          • The width of the columns in the key is determined from the length of the longest title. By default the titles are right-justified, so all of them except the longest will have whitespace to the left. If you change to left-justification then all titles will have the same amount whitespace to the left (approx one character width) but will vary in how much space there is between the text and the sample line/point/fill symbol.

            – Ethan
            Nov 16 '18 at 22:11
















          2












          2








          2







          "remove the left white space" - to left-justify the text, say set key Left.
          This will affect all entries in the key box, not just the leftmost one.



          "keep the gap between entries" - do not squeeze the box with width -2






          share|improve this answer













          "remove the left white space" - to left-justify the text, say set key Left.
          This will affect all entries in the key box, not just the leftmost one.



          "keep the gap between entries" - do not squeeze the box with width -2







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 15 '18 at 18:31









          EthanEthan

          2,0592610




          2,0592610













          • Thanks for your reply. I'm sorry but, what you mention is not fit for my intention. With your advise, the result does not remove the left white space in the key box, as you say "This will affect all entries in the key box, not just the leftmost one". How can I remove the white space?

            – nickeys
            Nov 16 '18 at 7:15











          • The width of the columns in the key is determined from the length of the longest title. By default the titles are right-justified, so all of them except the longest will have whitespace to the left. If you change to left-justification then all titles will have the same amount whitespace to the left (approx one character width) but will vary in how much space there is between the text and the sample line/point/fill symbol.

            – Ethan
            Nov 16 '18 at 22:11





















          • Thanks for your reply. I'm sorry but, what you mention is not fit for my intention. With your advise, the result does not remove the left white space in the key box, as you say "This will affect all entries in the key box, not just the leftmost one". How can I remove the white space?

            – nickeys
            Nov 16 '18 at 7:15











          • The width of the columns in the key is determined from the length of the longest title. By default the titles are right-justified, so all of them except the longest will have whitespace to the left. If you change to left-justification then all titles will have the same amount whitespace to the left (approx one character width) but will vary in how much space there is between the text and the sample line/point/fill symbol.

            – Ethan
            Nov 16 '18 at 22:11



















          Thanks for your reply. I'm sorry but, what you mention is not fit for my intention. With your advise, the result does not remove the left white space in the key box, as you say "This will affect all entries in the key box, not just the leftmost one". How can I remove the white space?

          – nickeys
          Nov 16 '18 at 7:15





          Thanks for your reply. I'm sorry but, what you mention is not fit for my intention. With your advise, the result does not remove the left white space in the key box, as you say "This will affect all entries in the key box, not just the leftmost one". How can I remove the white space?

          – nickeys
          Nov 16 '18 at 7:15













          The width of the columns in the key is determined from the length of the longest title. By default the titles are right-justified, so all of them except the longest will have whitespace to the left. If you change to left-justification then all titles will have the same amount whitespace to the left (approx one character width) but will vary in how much space there is between the text and the sample line/point/fill symbol.

          – Ethan
          Nov 16 '18 at 22:11







          The width of the columns in the key is determined from the length of the longest title. By default the titles are right-justified, so all of them except the longest will have whitespace to the left. If you change to left-justification then all titles will have the same amount whitespace to the left (approx one character width) but will vary in how much space there is between the text and the sample line/point/fill symbol.

          – Ethan
          Nov 16 '18 at 22:11






















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53319503%2fhow-to-prevent-entries-in-the-legend-overlapping-without-white-space%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine