No values shown in histogram with “mouse-over”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












Today I experienced a strange behavior in a histogram I made. Here a MWE:
Given a set of points:



pts = RandomReal[1, 1000, 2];


and a helper function which does as it is named:



ClearAll[uniqueTuples];
uniqueTuples[list_List]:=Module[n=Length[list],
Flatten[Table[list[[i]],list[[i+j]],i,1,n,j,1,n-i],1]
]


then I made two histograms and displayed them in a GraphicsRow



Block[dist, h1, h2,
dist = EuclideanDistance @@@ (uniqueTuples[pts]);
h1 = Histogram[dist, PlotLabel -> "Euclidian-distance"];
dist = ManhattanDistance[#[[1]], #[[2]]] & /@ (uniqueTuples[pts]);
h2 = Histogram[dist, PlotLabel -> "Manhatten-distance"];
GraphicsRow[h1, h2, ImageSize -> Large]
]


When I point over the right histogram the values of the bars are shown, but not for the left histogram:



enter image description here
I do not understand why this is so (maybe it has a simple reason, but at the moment I do not understand this).










share|improve this question



























    up vote
    2
    down vote

    favorite
    1












    Today I experienced a strange behavior in a histogram I made. Here a MWE:
    Given a set of points:



    pts = RandomReal[1, 1000, 2];


    and a helper function which does as it is named:



    ClearAll[uniqueTuples];
    uniqueTuples[list_List]:=Module[n=Length[list],
    Flatten[Table[list[[i]],list[[i+j]],i,1,n,j,1,n-i],1]
    ]


    then I made two histograms and displayed them in a GraphicsRow



    Block[dist, h1, h2,
    dist = EuclideanDistance @@@ (uniqueTuples[pts]);
    h1 = Histogram[dist, PlotLabel -> "Euclidian-distance"];
    dist = ManhattanDistance[#[[1]], #[[2]]] & /@ (uniqueTuples[pts]);
    h2 = Histogram[dist, PlotLabel -> "Manhatten-distance"];
    GraphicsRow[h1, h2, ImageSize -> Large]
    ]


    When I point over the right histogram the values of the bars are shown, but not for the left histogram:



    enter image description here
    I do not understand why this is so (maybe it has a simple reason, but at the moment I do not understand this).










    share|improve this question

























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      Today I experienced a strange behavior in a histogram I made. Here a MWE:
      Given a set of points:



      pts = RandomReal[1, 1000, 2];


      and a helper function which does as it is named:



      ClearAll[uniqueTuples];
      uniqueTuples[list_List]:=Module[n=Length[list],
      Flatten[Table[list[[i]],list[[i+j]],i,1,n,j,1,n-i],1]
      ]


      then I made two histograms and displayed them in a GraphicsRow



      Block[dist, h1, h2,
      dist = EuclideanDistance @@@ (uniqueTuples[pts]);
      h1 = Histogram[dist, PlotLabel -> "Euclidian-distance"];
      dist = ManhattanDistance[#[[1]], #[[2]]] & /@ (uniqueTuples[pts]);
      h2 = Histogram[dist, PlotLabel -> "Manhatten-distance"];
      GraphicsRow[h1, h2, ImageSize -> Large]
      ]


      When I point over the right histogram the values of the bars are shown, but not for the left histogram:



      enter image description here
      I do not understand why this is so (maybe it has a simple reason, but at the moment I do not understand this).










      share|improve this question















      Today I experienced a strange behavior in a histogram I made. Here a MWE:
      Given a set of points:



      pts = RandomReal[1, 1000, 2];


      and a helper function which does as it is named:



      ClearAll[uniqueTuples];
      uniqueTuples[list_List]:=Module[n=Length[list],
      Flatten[Table[list[[i]],list[[i+j]],i,1,n,j,1,n-i],1]
      ]


      then I made two histograms and displayed them in a GraphicsRow



      Block[dist, h1, h2,
      dist = EuclideanDistance @@@ (uniqueTuples[pts]);
      h1 = Histogram[dist, PlotLabel -> "Euclidian-distance"];
      dist = ManhattanDistance[#[[1]], #[[2]]] & /@ (uniqueTuples[pts]);
      h2 = Histogram[dist, PlotLabel -> "Manhatten-distance"];
      GraphicsRow[h1, h2, ImageSize -> Large]
      ]


      When I point over the right histogram the values of the bars are shown, but not for the left histogram:



      enter image description here
      I do not understand why this is so (maybe it has a simple reason, but at the moment I do not understand this).







      histograms






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 hours ago









      kglr

      163k8188387




      163k8188387










      asked 2 hours ago









      mgamer

      2,640918




      2,640918




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Adding the option LabelingFunction -> Tooltip fixes the problem.



          If the number of bins exceeds 25, LabelingFunction option value is set to None. You can see the code behind Charting`iHistogram (which is called by Histogram) after clearing its Protected and ReadProtected attributes. The relevant part of the code is:



          If[System`HistogramDump`perfgoal===Speed||System`HistogramDump`numberOfBins > 25,
          If[System`HistogramDump`highlight === Automatic,
          System`HistogramDump`highlight = None];
          If[System`HistogramDump`labelingfunction === Automatic,
          System`HistogramDump`labelingfunction = None]]





          share|improve this answer




















          • Thank you for the fast and enlightening answer!
            – mgamer
            1 hour ago










          • @mgamer, my pleasure. Thank you for the accept.
            – kglr
            1 hour ago










          Your Answer




          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "387"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183014%2fno-values-shown-in-histogram-with-mouse-over%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          Adding the option LabelingFunction -> Tooltip fixes the problem.



          If the number of bins exceeds 25, LabelingFunction option value is set to None. You can see the code behind Charting`iHistogram (which is called by Histogram) after clearing its Protected and ReadProtected attributes. The relevant part of the code is:



          If[System`HistogramDump`perfgoal===Speed||System`HistogramDump`numberOfBins > 25,
          If[System`HistogramDump`highlight === Automatic,
          System`HistogramDump`highlight = None];
          If[System`HistogramDump`labelingfunction === Automatic,
          System`HistogramDump`labelingfunction = None]]





          share|improve this answer




















          • Thank you for the fast and enlightening answer!
            – mgamer
            1 hour ago










          • @mgamer, my pleasure. Thank you for the accept.
            – kglr
            1 hour ago














          up vote
          3
          down vote



          accepted










          Adding the option LabelingFunction -> Tooltip fixes the problem.



          If the number of bins exceeds 25, LabelingFunction option value is set to None. You can see the code behind Charting`iHistogram (which is called by Histogram) after clearing its Protected and ReadProtected attributes. The relevant part of the code is:



          If[System`HistogramDump`perfgoal===Speed||System`HistogramDump`numberOfBins > 25,
          If[System`HistogramDump`highlight === Automatic,
          System`HistogramDump`highlight = None];
          If[System`HistogramDump`labelingfunction === Automatic,
          System`HistogramDump`labelingfunction = None]]





          share|improve this answer




















          • Thank you for the fast and enlightening answer!
            – mgamer
            1 hour ago










          • @mgamer, my pleasure. Thank you for the accept.
            – kglr
            1 hour ago












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          Adding the option LabelingFunction -> Tooltip fixes the problem.



          If the number of bins exceeds 25, LabelingFunction option value is set to None. You can see the code behind Charting`iHistogram (which is called by Histogram) after clearing its Protected and ReadProtected attributes. The relevant part of the code is:



          If[System`HistogramDump`perfgoal===Speed||System`HistogramDump`numberOfBins > 25,
          If[System`HistogramDump`highlight === Automatic,
          System`HistogramDump`highlight = None];
          If[System`HistogramDump`labelingfunction === Automatic,
          System`HistogramDump`labelingfunction = None]]





          share|improve this answer












          Adding the option LabelingFunction -> Tooltip fixes the problem.



          If the number of bins exceeds 25, LabelingFunction option value is set to None. You can see the code behind Charting`iHistogram (which is called by Histogram) after clearing its Protected and ReadProtected attributes. The relevant part of the code is:



          If[System`HistogramDump`perfgoal===Speed||System`HistogramDump`numberOfBins > 25,
          If[System`HistogramDump`highlight === Automatic,
          System`HistogramDump`highlight = None];
          If[System`HistogramDump`labelingfunction === Automatic,
          System`HistogramDump`labelingfunction = None]]






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          kglr

          163k8188387




          163k8188387











          • Thank you for the fast and enlightening answer!
            – mgamer
            1 hour ago










          • @mgamer, my pleasure. Thank you for the accept.
            – kglr
            1 hour ago
















          • Thank you for the fast and enlightening answer!
            – mgamer
            1 hour ago










          • @mgamer, my pleasure. Thank you for the accept.
            – kglr
            1 hour ago















          Thank you for the fast and enlightening answer!
          – mgamer
          1 hour ago




          Thank you for the fast and enlightening answer!
          – mgamer
          1 hour ago












          @mgamer, my pleasure. Thank you for the accept.
          – kglr
          1 hour ago




          @mgamer, my pleasure. Thank you for the accept.
          – kglr
          1 hour ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183014%2fno-values-shown-in-histogram-with-mouse-over%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          List of Gilmore Girls characters

          What does second last employer means? [closed]

          One-line joke