No values shown in histogram with “mouse-overâ€
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
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:
I do not understand why this is so (maybe it has a simple reason, but at the moment I do not understand this).
histograms
add a comment |Â
up vote
2
down vote
favorite
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:
I do not understand why this is so (maybe it has a simple reason, but at the moment I do not understand this).
histograms
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
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:
I do not understand why this is so (maybe it has a simple reason, but at the moment I do not understand this).
histograms
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:
I do not understand why this is so (maybe it has a simple reason, but at the moment I do not understand this).
histograms
histograms
edited 2 hours ago
kglr
163k8188387
163k8188387
asked 2 hours ago


mgamer
2,640918
2,640918
add a comment |Â
add a comment |Â
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]]
Thank you for the fast and enlightening answer!
– mgamer
1 hour ago
@mgamer, my pleasure. Thank you for the accept.
– kglr
1 hour ago
add a comment |Â
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]]
Thank you for the fast and enlightening answer!
– mgamer
1 hour ago
@mgamer, my pleasure. Thank you for the accept.
– kglr
1 hour ago
add a comment |Â
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]]
Thank you for the fast and enlightening answer!
– mgamer
1 hour ago
@mgamer, my pleasure. Thank you for the accept.
– kglr
1 hour ago
add a comment |Â
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]]
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]]
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password