Gantt Chart like rectangles with log scalePoets of the 19th centuryIs there a way to output histogram x and y data without using the Histogram chart function?BarChart and Log Scale results in different bar originsIssue with ListDensityPlot when using logarithmic scaleHow to plot BarChart with error bars on logarithmic scale in Mathematica 9?How to plot two y axis? or combine(merge) two plots? Should handle faceted column as wellJumping from one dimension (1D) to two dimensions (2D)Jumping from one dimension (1D) to two dimensions (2D) Part IIWavelet Data Visualization (modus and phase) ListPlotBar chart scale in multi-chart visualisationUpdate: Combining DistributionChart and BoxWhiskerChart

How can I extract data from text file?

Why is "la Gestapo" feminine?

Extract substring according to regexp with sed or grep

What kind of footwear is suitable for walking in micro gravity environment?

What is the difference between something being completely legal and being completely decriminalized?

Why didn’t Eve recognize the little cockroach as a living organism?

Is Crypto.generateMac method work exactly the same as Mac and SecretKeySpec java classes

Why would five hundred and five same as one?

Are hand made posters acceptable in Academia?

God... independent

Cedent or Cedant

How to left align the cases in Latex?

Output visual diagram of picture

Was World War I a war of liberals against authoritarians?

Is it okay for a cleric of life to use spells like Animate Dead and/or Contagion?

What happens when the centripetal force is equal and opposite to the centrifugal force?

Do native speakers use "ultima" and "proxima" frequently in spoken English?

Is storing any type of function in one variable possible?

What's the meaning of "what it means for sth to be sth"?

Unfrosted light bulb

Magento2 Admin dashboard chart is broken in my all Projects

Is this Pascal's Matrix?

Hot air balloons as primitive bombers

Weird lines in Microsoft Word



Gantt Chart like rectangles with log scale


Poets of the 19th centuryIs there a way to output histogram x and y data without using the Histogram chart function?BarChart and Log Scale results in different bar originsIssue with ListDensityPlot when using logarithmic scaleHow to plot BarChart with error bars on logarithmic scale in Mathematica 9?How to plot two y axis? or combine(merge) two plots? Should handle faceted column as wellJumping from one dimension (1D) to two dimensions (2D)Jumping from one dimension (1D) to two dimensions (2D) Part IIWavelet Data Visualization (modus and phase) ListPlotBar chart scale in multi-chart visualisationUpdate: Combining DistributionChart and BoxWhiskerChart













6












$begingroup$


I need to plot something that looks like a gant chart, but are actual data ranges. These ranges need to be on a log scale. Graphics does not offer a Scalingfunction. A LogPlot with ErrorBars does not work either and would not look ideal. Is it possible to draw rectangles with one axis being log scale?



E.g.:
Min and Max values of the rectangles are the known data.



enter image description here










share|improve this question











$endgroup$







  • 1




    $begingroup$
    Can you point to an example (even a non-Mathematica example)?
    $endgroup$
    – David G. Stork
    Mar 15 at 19:52















6












$begingroup$


I need to plot something that looks like a gant chart, but are actual data ranges. These ranges need to be on a log scale. Graphics does not offer a Scalingfunction. A LogPlot with ErrorBars does not work either and would not look ideal. Is it possible to draw rectangles with one axis being log scale?



E.g.:
Min and Max values of the rectangles are the known data.



enter image description here










share|improve this question











$endgroup$







  • 1




    $begingroup$
    Can you point to an example (even a non-Mathematica example)?
    $endgroup$
    – David G. Stork
    Mar 15 at 19:52













6












6








6





$begingroup$


I need to plot something that looks like a gant chart, but are actual data ranges. These ranges need to be on a log scale. Graphics does not offer a Scalingfunction. A LogPlot with ErrorBars does not work either and would not look ideal. Is it possible to draw rectangles with one axis being log scale?



E.g.:
Min and Max values of the rectangles are the known data.



enter image description here










share|improve this question











$endgroup$




I need to plot something that looks like a gant chart, but are actual data ranges. These ranges need to be on a log scale. Graphics does not offer a Scalingfunction. A LogPlot with ErrorBars does not work either and would not look ideal. Is it possible to draw rectangles with one axis being log scale?



E.g.:
Min and Max values of the rectangles are the known data.



enter image description here







plotting charts






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 15 at 20:17







Mockup Dungeon

















asked Mar 15 at 19:50









Mockup DungeonMockup Dungeon

895613




895613







  • 1




    $begingroup$
    Can you point to an example (even a non-Mathematica example)?
    $endgroup$
    – David G. Stork
    Mar 15 at 19:52












  • 1




    $begingroup$
    Can you point to an example (even a non-Mathematica example)?
    $endgroup$
    – David G. Stork
    Mar 15 at 19:52







1




1




$begingroup$
Can you point to an example (even a non-Mathematica example)?
$endgroup$
– David G. Stork
Mar 15 at 19:52




$begingroup$
Can you point to an example (even a non-Mathematica example)?
$endgroup$
– David G. Stork
Mar 15 at 19:52










3 Answers
3






active

oldest

votes


















10












$begingroup$

SeedRandom[1]
dates = Sort /@ RandomInteger[10, 1000, 5, 2];
data = MapIndexed[Thread@#, #2[[1]] &, dates];
labels = CharacterRange["A", "E"];
data2 = MapIndexed[Labeled[#, #2[[1]], Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], Center] &, GeometricMean /@ dates];


ListLogLinearPlot



Show[ListLogLinearPlot[data, 
BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]],
Joined -> True, AspectRatio -> 1/2, ImageSize -> Large,
PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic],
ListLogLinearPlot[data2, PlotMarkers -> ""]]


enter image description here



ListLinePlot + ScalingFunctions



ListLinePlot[data, BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]], 
ScalingFunctions -> "Log", "Linear", AspectRatio -> 1/2,
ImageSize -> Large, PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic,
Epilog -> MapIndexed[Text[Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], #, #2[[1]], Center] &, Log[GeometricMean /@ dates]]]


enter image description here



TimeLinePlot



TimelinePlot[Labeled[#, Style[#2, White, FontSize -> Scaled[.03]], Center] & @@@ 
Transpose[Interval /@ (Map[N@*Log, dates, -1]), labels],
PlotStyle -> Directive[AbsoluteThickness[40], CapForm["Butt"]],
Spacings -> .1, PlotMarkers -> "", Frame -> True,
AspectRatio -> 1/2, PerformanceGoal -> "Speed",
FrameTicks -> Automatic, Automatic,
Transpose[Log@#, # &@50, 100, 200, 500], None]


enter image description here



BarChart



BarChart[Style[#[[1]], Directive[EdgeForm[], White]], 
Labeled[Style[#[[2]], Directive[EdgeForm[], #2]],
Style[#3, White, FontSize -> Scaled[.03]], Center] & @@@
Transpose[dates, ColorData[97] /@ Range[Length@dates], labels],
BarOrigin -> Left, BarSpacing -> 0, .25, ChartLayout -> "Stacked",
ScalingFunctions -> "Log", Axes -> False,
PerformanceGoal -> "Speed", Frame -> True, ImageSize -> Large,
PlotRangePadding -> .5, AspectRatio -> 1/2]


enter image description here



Thanks: @David G. Stork for the GeometricMean idea to center the labels.



See also: Poets of the 19th century






share|improve this answer











$endgroup$








  • 3




    $begingroup$
    The only needed improvement: take the geometric mean of each bar's endpoints to get the "middle" placement of the letter. Mean is simply incorrect. Try GeometricMean.
    $endgroup$
    – David G. Stork
    Mar 15 at 21:24











  • $begingroup$
    Thank you @David! I was struggling with exactly that issue.
    $endgroup$
    – kglr
    Mar 15 at 21:29


















4












$begingroup$

LogLinearPlot[1, 
t, .1, 100,
PlotStyle -> White,
Epilog -> Rectangle[Log[1], .5, Log[50], 1],
Red, Rectangle[Log[30], 1.5, Log[80], 2],
Text[Style["a", White, 18], Log[7], .75],
Text[Style["b", White, 18], Log[53], 1.75]]





share|improve this answer











$endgroup$












  • $begingroup$
    This is nice, was wondering how to use Rectangle[]. Thank you!
    $endgroup$
    – mjw
    Mar 15 at 21:18


















1












$begingroup$

A = 10^5; B = 5;
rectangle[start_, length_, number_] :=
RegionPlot[Log10[start] <= x <= Log10[start + length] &&
number <= y <= number + .75, x, 0, Log10[A], y, 0, B,
PlotStyle -> LightBlue, BoundaryStyle -> Blue];
Show[
rectangle[10, 300, 1], rectangle[100, 3000, 2], rectangle[1000, 30000, 3],
FrameTicks -> Transpose@Range[0,5], 10^Range[0,5], Automatic, None, None,
AspectRatio -> 1/2
]


enter image description here






share|improve this answer











$endgroup$












  • $begingroup$
    Axis-Ticks should not be a problem. I'll check tomorrow. It's now night here.
    $endgroup$
    – Mockup Dungeon
    Mar 15 at 21:02










  • $begingroup$
    Added FrameTicks[]. You are right, not a problem.
    $endgroup$
    – mjw
    2 days 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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2fmathematica.stackexchange.com%2fquestions%2f193341%2fgantt-chart-like-rectangles-with-log-scale%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









10












$begingroup$

SeedRandom[1]
dates = Sort /@ RandomInteger[10, 1000, 5, 2];
data = MapIndexed[Thread@#, #2[[1]] &, dates];
labels = CharacterRange["A", "E"];
data2 = MapIndexed[Labeled[#, #2[[1]], Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], Center] &, GeometricMean /@ dates];


ListLogLinearPlot



Show[ListLogLinearPlot[data, 
BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]],
Joined -> True, AspectRatio -> 1/2, ImageSize -> Large,
PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic],
ListLogLinearPlot[data2, PlotMarkers -> ""]]


enter image description here



ListLinePlot + ScalingFunctions



ListLinePlot[data, BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]], 
ScalingFunctions -> "Log", "Linear", AspectRatio -> 1/2,
ImageSize -> Large, PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic,
Epilog -> MapIndexed[Text[Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], #, #2[[1]], Center] &, Log[GeometricMean /@ dates]]]


enter image description here



TimeLinePlot



TimelinePlot[Labeled[#, Style[#2, White, FontSize -> Scaled[.03]], Center] & @@@ 
Transpose[Interval /@ (Map[N@*Log, dates, -1]), labels],
PlotStyle -> Directive[AbsoluteThickness[40], CapForm["Butt"]],
Spacings -> .1, PlotMarkers -> "", Frame -> True,
AspectRatio -> 1/2, PerformanceGoal -> "Speed",
FrameTicks -> Automatic, Automatic,
Transpose[Log@#, # &@50, 100, 200, 500], None]


enter image description here



BarChart



BarChart[Style[#[[1]], Directive[EdgeForm[], White]], 
Labeled[Style[#[[2]], Directive[EdgeForm[], #2]],
Style[#3, White, FontSize -> Scaled[.03]], Center] & @@@
Transpose[dates, ColorData[97] /@ Range[Length@dates], labels],
BarOrigin -> Left, BarSpacing -> 0, .25, ChartLayout -> "Stacked",
ScalingFunctions -> "Log", Axes -> False,
PerformanceGoal -> "Speed", Frame -> True, ImageSize -> Large,
PlotRangePadding -> .5, AspectRatio -> 1/2]


enter image description here



Thanks: @David G. Stork for the GeometricMean idea to center the labels.



See also: Poets of the 19th century






share|improve this answer











$endgroup$








  • 3




    $begingroup$
    The only needed improvement: take the geometric mean of each bar's endpoints to get the "middle" placement of the letter. Mean is simply incorrect. Try GeometricMean.
    $endgroup$
    – David G. Stork
    Mar 15 at 21:24











  • $begingroup$
    Thank you @David! I was struggling with exactly that issue.
    $endgroup$
    – kglr
    Mar 15 at 21:29















10












$begingroup$

SeedRandom[1]
dates = Sort /@ RandomInteger[10, 1000, 5, 2];
data = MapIndexed[Thread@#, #2[[1]] &, dates];
labels = CharacterRange["A", "E"];
data2 = MapIndexed[Labeled[#, #2[[1]], Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], Center] &, GeometricMean /@ dates];


ListLogLinearPlot



Show[ListLogLinearPlot[data, 
BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]],
Joined -> True, AspectRatio -> 1/2, ImageSize -> Large,
PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic],
ListLogLinearPlot[data2, PlotMarkers -> ""]]


enter image description here



ListLinePlot + ScalingFunctions



ListLinePlot[data, BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]], 
ScalingFunctions -> "Log", "Linear", AspectRatio -> 1/2,
ImageSize -> Large, PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic,
Epilog -> MapIndexed[Text[Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], #, #2[[1]], Center] &, Log[GeometricMean /@ dates]]]


enter image description here



TimeLinePlot



TimelinePlot[Labeled[#, Style[#2, White, FontSize -> Scaled[.03]], Center] & @@@ 
Transpose[Interval /@ (Map[N@*Log, dates, -1]), labels],
PlotStyle -> Directive[AbsoluteThickness[40], CapForm["Butt"]],
Spacings -> .1, PlotMarkers -> "", Frame -> True,
AspectRatio -> 1/2, PerformanceGoal -> "Speed",
FrameTicks -> Automatic, Automatic,
Transpose[Log@#, # &@50, 100, 200, 500], None]


enter image description here



BarChart



BarChart[Style[#[[1]], Directive[EdgeForm[], White]], 
Labeled[Style[#[[2]], Directive[EdgeForm[], #2]],
Style[#3, White, FontSize -> Scaled[.03]], Center] & @@@
Transpose[dates, ColorData[97] /@ Range[Length@dates], labels],
BarOrigin -> Left, BarSpacing -> 0, .25, ChartLayout -> "Stacked",
ScalingFunctions -> "Log", Axes -> False,
PerformanceGoal -> "Speed", Frame -> True, ImageSize -> Large,
PlotRangePadding -> .5, AspectRatio -> 1/2]


enter image description here



Thanks: @David G. Stork for the GeometricMean idea to center the labels.



See also: Poets of the 19th century






share|improve this answer











$endgroup$








  • 3




    $begingroup$
    The only needed improvement: take the geometric mean of each bar's endpoints to get the "middle" placement of the letter. Mean is simply incorrect. Try GeometricMean.
    $endgroup$
    – David G. Stork
    Mar 15 at 21:24











  • $begingroup$
    Thank you @David! I was struggling with exactly that issue.
    $endgroup$
    – kglr
    Mar 15 at 21:29













10












10








10





$begingroup$

SeedRandom[1]
dates = Sort /@ RandomInteger[10, 1000, 5, 2];
data = MapIndexed[Thread@#, #2[[1]] &, dates];
labels = CharacterRange["A", "E"];
data2 = MapIndexed[Labeled[#, #2[[1]], Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], Center] &, GeometricMean /@ dates];


ListLogLinearPlot



Show[ListLogLinearPlot[data, 
BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]],
Joined -> True, AspectRatio -> 1/2, ImageSize -> Large,
PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic],
ListLogLinearPlot[data2, PlotMarkers -> ""]]


enter image description here



ListLinePlot + ScalingFunctions



ListLinePlot[data, BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]], 
ScalingFunctions -> "Log", "Linear", AspectRatio -> 1/2,
ImageSize -> Large, PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic,
Epilog -> MapIndexed[Text[Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], #, #2[[1]], Center] &, Log[GeometricMean /@ dates]]]


enter image description here



TimeLinePlot



TimelinePlot[Labeled[#, Style[#2, White, FontSize -> Scaled[.03]], Center] & @@@ 
Transpose[Interval /@ (Map[N@*Log, dates, -1]), labels],
PlotStyle -> Directive[AbsoluteThickness[40], CapForm["Butt"]],
Spacings -> .1, PlotMarkers -> "", Frame -> True,
AspectRatio -> 1/2, PerformanceGoal -> "Speed",
FrameTicks -> Automatic, Automatic,
Transpose[Log@#, # &@50, 100, 200, 500], None]


enter image description here



BarChart



BarChart[Style[#[[1]], Directive[EdgeForm[], White]], 
Labeled[Style[#[[2]], Directive[EdgeForm[], #2]],
Style[#3, White, FontSize -> Scaled[.03]], Center] & @@@
Transpose[dates, ColorData[97] /@ Range[Length@dates], labels],
BarOrigin -> Left, BarSpacing -> 0, .25, ChartLayout -> "Stacked",
ScalingFunctions -> "Log", Axes -> False,
PerformanceGoal -> "Speed", Frame -> True, ImageSize -> Large,
PlotRangePadding -> .5, AspectRatio -> 1/2]


enter image description here



Thanks: @David G. Stork for the GeometricMean idea to center the labels.



See also: Poets of the 19th century






share|improve this answer











$endgroup$



SeedRandom[1]
dates = Sort /@ RandomInteger[10, 1000, 5, 2];
data = MapIndexed[Thread@#, #2[[1]] &, dates];
labels = CharacterRange["A", "E"];
data2 = MapIndexed[Labeled[#, #2[[1]], Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], Center] &, GeometricMean /@ dates];


ListLogLinearPlot



Show[ListLogLinearPlot[data, 
BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]],
Joined -> True, AspectRatio -> 1/2, ImageSize -> Large,
PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic],
ListLogLinearPlot[data2, PlotMarkers -> ""]]


enter image description here



ListLinePlot + ScalingFunctions



ListLinePlot[data, BaseStyle -> Directive[AbsoluteThickness[36], CapForm["Butt"]], 
ScalingFunctions -> "Log", "Linear", AspectRatio -> 1/2,
ImageSize -> Large, PlotRange -> 0, 6, Frame -> True,
FrameTicks -> None, None, 50, 100, 200, 500, 1000, Automatic,
Epilog -> MapIndexed[Text[Style[labels[[#2[[1]]]], White,
FontSize -> Scaled[.03]], #, #2[[1]], Center] &, Log[GeometricMean /@ dates]]]


enter image description here



TimeLinePlot



TimelinePlot[Labeled[#, Style[#2, White, FontSize -> Scaled[.03]], Center] & @@@ 
Transpose[Interval /@ (Map[N@*Log, dates, -1]), labels],
PlotStyle -> Directive[AbsoluteThickness[40], CapForm["Butt"]],
Spacings -> .1, PlotMarkers -> "", Frame -> True,
AspectRatio -> 1/2, PerformanceGoal -> "Speed",
FrameTicks -> Automatic, Automatic,
Transpose[Log@#, # &@50, 100, 200, 500], None]


enter image description here



BarChart



BarChart[Style[#[[1]], Directive[EdgeForm[], White]], 
Labeled[Style[#[[2]], Directive[EdgeForm[], #2]],
Style[#3, White, FontSize -> Scaled[.03]], Center] & @@@
Transpose[dates, ColorData[97] /@ Range[Length@dates], labels],
BarOrigin -> Left, BarSpacing -> 0, .25, ChartLayout -> "Stacked",
ScalingFunctions -> "Log", Axes -> False,
PerformanceGoal -> "Speed", Frame -> True, ImageSize -> Large,
PlotRangePadding -> .5, AspectRatio -> 1/2]


enter image description here



Thanks: @David G. Stork for the GeometricMean idea to center the labels.



See also: Poets of the 19th century







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 16 at 12:05

























answered Mar 15 at 21:19









kglrkglr

189k10206424




189k10206424







  • 3




    $begingroup$
    The only needed improvement: take the geometric mean of each bar's endpoints to get the "middle" placement of the letter. Mean is simply incorrect. Try GeometricMean.
    $endgroup$
    – David G. Stork
    Mar 15 at 21:24











  • $begingroup$
    Thank you @David! I was struggling with exactly that issue.
    $endgroup$
    – kglr
    Mar 15 at 21:29












  • 3




    $begingroup$
    The only needed improvement: take the geometric mean of each bar's endpoints to get the "middle" placement of the letter. Mean is simply incorrect. Try GeometricMean.
    $endgroup$
    – David G. Stork
    Mar 15 at 21:24











  • $begingroup$
    Thank you @David! I was struggling with exactly that issue.
    $endgroup$
    – kglr
    Mar 15 at 21:29







3




3




$begingroup$
The only needed improvement: take the geometric mean of each bar's endpoints to get the "middle" placement of the letter. Mean is simply incorrect. Try GeometricMean.
$endgroup$
– David G. Stork
Mar 15 at 21:24





$begingroup$
The only needed improvement: take the geometric mean of each bar's endpoints to get the "middle" placement of the letter. Mean is simply incorrect. Try GeometricMean.
$endgroup$
– David G. Stork
Mar 15 at 21:24













$begingroup$
Thank you @David! I was struggling with exactly that issue.
$endgroup$
– kglr
Mar 15 at 21:29




$begingroup$
Thank you @David! I was struggling with exactly that issue.
$endgroup$
– kglr
Mar 15 at 21:29











4












$begingroup$

LogLinearPlot[1, 
t, .1, 100,
PlotStyle -> White,
Epilog -> Rectangle[Log[1], .5, Log[50], 1],
Red, Rectangle[Log[30], 1.5, Log[80], 2],
Text[Style["a", White, 18], Log[7], .75],
Text[Style["b", White, 18], Log[53], 1.75]]





share|improve this answer











$endgroup$












  • $begingroup$
    This is nice, was wondering how to use Rectangle[]. Thank you!
    $endgroup$
    – mjw
    Mar 15 at 21:18















4












$begingroup$

LogLinearPlot[1, 
t, .1, 100,
PlotStyle -> White,
Epilog -> Rectangle[Log[1], .5, Log[50], 1],
Red, Rectangle[Log[30], 1.5, Log[80], 2],
Text[Style["a", White, 18], Log[7], .75],
Text[Style["b", White, 18], Log[53], 1.75]]





share|improve this answer











$endgroup$












  • $begingroup$
    This is nice, was wondering how to use Rectangle[]. Thank you!
    $endgroup$
    – mjw
    Mar 15 at 21:18













4












4








4





$begingroup$

LogLinearPlot[1, 
t, .1, 100,
PlotStyle -> White,
Epilog -> Rectangle[Log[1], .5, Log[50], 1],
Red, Rectangle[Log[30], 1.5, Log[80], 2],
Text[Style["a", White, 18], Log[7], .75],
Text[Style["b", White, 18], Log[53], 1.75]]





share|improve this answer











$endgroup$



LogLinearPlot[1, 
t, .1, 100,
PlotStyle -> White,
Epilog -> Rectangle[Log[1], .5, Log[50], 1],
Red, Rectangle[Log[30], 1.5, Log[80], 2],
Text[Style["a", White, 18], Log[7], .75],
Text[Style["b", White, 18], Log[53], 1.75]]






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 15 at 21:06

























answered Mar 15 at 20:47









David G. StorkDavid G. Stork

24.7k22153




24.7k22153











  • $begingroup$
    This is nice, was wondering how to use Rectangle[]. Thank you!
    $endgroup$
    – mjw
    Mar 15 at 21:18
















  • $begingroup$
    This is nice, was wondering how to use Rectangle[]. Thank you!
    $endgroup$
    – mjw
    Mar 15 at 21:18















$begingroup$
This is nice, was wondering how to use Rectangle[]. Thank you!
$endgroup$
– mjw
Mar 15 at 21:18




$begingroup$
This is nice, was wondering how to use Rectangle[]. Thank you!
$endgroup$
– mjw
Mar 15 at 21:18











1












$begingroup$

A = 10^5; B = 5;
rectangle[start_, length_, number_] :=
RegionPlot[Log10[start] <= x <= Log10[start + length] &&
number <= y <= number + .75, x, 0, Log10[A], y, 0, B,
PlotStyle -> LightBlue, BoundaryStyle -> Blue];
Show[
rectangle[10, 300, 1], rectangle[100, 3000, 2], rectangle[1000, 30000, 3],
FrameTicks -> Transpose@Range[0,5], 10^Range[0,5], Automatic, None, None,
AspectRatio -> 1/2
]


enter image description here






share|improve this answer











$endgroup$












  • $begingroup$
    Axis-Ticks should not be a problem. I'll check tomorrow. It's now night here.
    $endgroup$
    – Mockup Dungeon
    Mar 15 at 21:02










  • $begingroup$
    Added FrameTicks[]. You are right, not a problem.
    $endgroup$
    – mjw
    2 days ago















1












$begingroup$

A = 10^5; B = 5;
rectangle[start_, length_, number_] :=
RegionPlot[Log10[start] <= x <= Log10[start + length] &&
number <= y <= number + .75, x, 0, Log10[A], y, 0, B,
PlotStyle -> LightBlue, BoundaryStyle -> Blue];
Show[
rectangle[10, 300, 1], rectangle[100, 3000, 2], rectangle[1000, 30000, 3],
FrameTicks -> Transpose@Range[0,5], 10^Range[0,5], Automatic, None, None,
AspectRatio -> 1/2
]


enter image description here






share|improve this answer











$endgroup$












  • $begingroup$
    Axis-Ticks should not be a problem. I'll check tomorrow. It's now night here.
    $endgroup$
    – Mockup Dungeon
    Mar 15 at 21:02










  • $begingroup$
    Added FrameTicks[]. You are right, not a problem.
    $endgroup$
    – mjw
    2 days ago













1












1








1





$begingroup$

A = 10^5; B = 5;
rectangle[start_, length_, number_] :=
RegionPlot[Log10[start] <= x <= Log10[start + length] &&
number <= y <= number + .75, x, 0, Log10[A], y, 0, B,
PlotStyle -> LightBlue, BoundaryStyle -> Blue];
Show[
rectangle[10, 300, 1], rectangle[100, 3000, 2], rectangle[1000, 30000, 3],
FrameTicks -> Transpose@Range[0,5], 10^Range[0,5], Automatic, None, None,
AspectRatio -> 1/2
]


enter image description here






share|improve this answer











$endgroup$



A = 10^5; B = 5;
rectangle[start_, length_, number_] :=
RegionPlot[Log10[start] <= x <= Log10[start + length] &&
number <= y <= number + .75, x, 0, Log10[A], y, 0, B,
PlotStyle -> LightBlue, BoundaryStyle -> Blue];
Show[
rectangle[10, 300, 1], rectangle[100, 3000, 2], rectangle[1000, 30000, 3],
FrameTicks -> Transpose@Range[0,5], 10^Range[0,5], Automatic, None, None,
AspectRatio -> 1/2
]


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered Mar 15 at 20:36









mjwmjw

8659




8659











  • $begingroup$
    Axis-Ticks should not be a problem. I'll check tomorrow. It's now night here.
    $endgroup$
    – Mockup Dungeon
    Mar 15 at 21:02










  • $begingroup$
    Added FrameTicks[]. You are right, not a problem.
    $endgroup$
    – mjw
    2 days ago
















  • $begingroup$
    Axis-Ticks should not be a problem. I'll check tomorrow. It's now night here.
    $endgroup$
    – Mockup Dungeon
    Mar 15 at 21:02










  • $begingroup$
    Added FrameTicks[]. You are right, not a problem.
    $endgroup$
    – mjw
    2 days ago















$begingroup$
Axis-Ticks should not be a problem. I'll check tomorrow. It's now night here.
$endgroup$
– Mockup Dungeon
Mar 15 at 21:02




$begingroup$
Axis-Ticks should not be a problem. I'll check tomorrow. It's now night here.
$endgroup$
– Mockup Dungeon
Mar 15 at 21:02












$begingroup$
Added FrameTicks[]. You are right, not a problem.
$endgroup$
– mjw
2 days ago




$begingroup$
Added FrameTicks[]. You are right, not a problem.
$endgroup$
– mjw
2 days ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematica Stack Exchange!


  • 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.

Use MathJax to format equations. MathJax reference.


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%2fmathematica.stackexchange.com%2fquestions%2f193341%2fgantt-chart-like-rectangles-with-log-scale%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

Masuk log Menu navigasi

Identifying “long and narrow” polygons in with PostGISlength and width of polygonWhy postgis st_overlaps reports Qgis' “avoid intersections” generated polygon as overlapping with others?Adjusting polygons to boundary and filling holesDrawing polygons with fixed area?How to remove spikes in Polygons with PostGISDeleting sliver polygons after difference operation in QGIS?Snapping boundaries in PostGISSplit polygon into parts adding attributes based on underlying polygon in QGISSplitting overlap between polygons and assign to nearest polygon using PostGIS?Expanding polygons and clipping at midpoint?Removing Intersection of Buffers in Same Layers

Старые Смолеговицы Содержание История | География | Демография | Достопримечательности | Примечания | НавигацияHGЯOLHGЯOL41 206 832 01641 606 406 141Административно-территориальное деление Ленинградской области«Переписная оброчная книга Водской пятины 1500 года», С. 793«Карта Ингерманландии: Ивангорода, Яма, Копорья, Нотеборга», по материалам 1676 г.«Генеральная карта провинции Ингерманландии» Э. Белинга и А. Андерсина, 1704 г., составлена по материалам 1678 г.«Географический чертёж над Ижорскою землей со своими городами» Адриана Шонбека 1705 г.Новая и достоверная всей Ингерманландии ланткарта. Грав. А. Ростовцев. СПб., 1727 г.Топографическая карта Санкт-Петербургской губернии. 5-и верстка. Шуберт. 1834 г.Описание Санкт-Петербургской губернии по уездам и станамСпецкарта западной части России Ф. Ф. Шуберта. 1844 г.Алфавитный список селений по уездам и станам С.-Петербургской губернииСписки населённых мест Российской Империи, составленные и издаваемые центральным статистическим комитетом министерства внутренних дел. XXXVII. Санкт-Петербургская губерния. По состоянию на 1862 год. СПб. 1864. С. 203Материалы по статистике народного хозяйства в С.-Петербургской губернии. Вып. IX. Частновладельческое хозяйство в Ямбургском уезде. СПб, 1888, С. 146, С. 2, 7, 54Положение о гербе муниципального образования Курское сельское поселениеСправочник истории административно-территориального деления Ленинградской области.Топографическая карта Ленинградской области, квадрат О-35-23-В (Хотыницы), 1930 г.АрхивированоАдминистративно-территориальное деление Ленинградской области. — Л., 1933, С. 27, 198АрхивированоАдминистративно-экономический справочник по Ленинградской области. — Л., 1936, с. 219АрхивированоАдминистративно-территориальное деление Ленинградской области. — Л., 1966, с. 175АрхивированоАдминистративно-территориальное деление Ленинградской области. — Лениздат, 1973, С. 180АрхивированоАдминистративно-территориальное деление Ленинградской области. — Лениздат, 1990, ISBN 5-289-00612-5, С. 38АрхивированоАдминистративно-территориальное деление Ленинградской области. — СПб., 2007, с. 60АрхивированоКоряков Юрий База данных «Этно-языковой состав населённых пунктов России». Ленинградская область.Административно-территориальное деление Ленинградской области. — СПб, 1997, ISBN 5-86153-055-6, С. 41АрхивированоКультовый комплекс Старые Смолеговицы // Электронная энциклопедия ЭрмитажаПроблемы выявления, изучения и сохранения культовых комплексов с каменными крестами: по материалам работ 2016-2017 гг. в Ленинградской области