Tag Info

Hot answers tagged

5

Looking at the rather dismal automatic placement of contour labels in the example Sin[x y], I thought it may be worth pointing out that you can often get better results with customized placement. For this, I devised a function burnTooltip in this answer. Here is how to use it for this question: Options[burnTooltips] = {ImageSize -> 360, ...


4

With some random data fhat = RandomReal[{-1, 1}, {1000, 4}]; One can get a BoxWhiskerChart with the value of the mean placed below each box and grid lines with BoxWhiskerChart[Transpose[fhat], "Mean", BarOrigin -> Left, LabelingFunction -> (Placed[Mean[#], Below] &), GridLines -> Automatic] Or with specified vertical grid lines, no ...


2

f[x_, y_] = x (y^3 + 1)^(1/2); Plot3D[f[x, y], {x, 0, 6}, {y, x/3, 2}, Filling -> 0] Plot3D[f[x, y], {x, 0, 6}, {y, 0, 2}, RegionFunction -> Function[{x, y}, x/3 <= y <= 2 && x >= 0], Filling -> 0] RegionPlot3D[0 <= z <= f[x, y] && x/3 <= y <= 2 && 0 <= x <= 6, {x, 0, 6}, {y, 0, 2}, ...


2

f[x_, y_] := Sin[x y] ContourPlot[f[x, y], {x, -2, 2}, {y, -2, 2}, ContourLabels -> All] Or if you want only some of them: f[x_, y_] := Sin[x y] ContourPlot[f[x, y], {x, -2, 2}, {y, -2, 2}, ContourLabels -> (If[Abs@#3 <= .25, Text[#3, {#1, #2}]] &)]


1

With some random numbers rNumbers = RandomReal[{0, 1}, 100] you can get a cumulative histogram with a log-log scale using Histogram[rNumbers, "Log", {"Log", "CumulativeCount"}]


1

if you want the values only plot = ContourPlot[x, {x, 0, 1}, {y, 0, 1}, Contours -> 4]; Cases[FullForm[plot], Tooltip[{__}, b_] :> b, Infinity]


1

eq = { x'[t] Sin[y[ t]] + x[t] y'[t] a == 1, y'[t] Cos[x[t]] - y[t] x'[t] b == 1} sol = ParametricNDSolve[{eq, x[0] == 1, y[0] == 1}, {x, y}, {t, 0, 1}, {a, b}] Manipulate[ ParametricPlot[{x[a, b][t], y[a, b][t]} /. sol, {t, 0, 1}, AspectRatio -> 1], {a, 0.5, 1}, {b, 0.5, 1}]


1

In V10: Plot3D[x (y^3 + 1)^(1/2), {x, y} \[Element] Polygon[{{0, 0}, {6, 2}, {0, 2}}], AxesLabel -> Automatic]


1

Several methods. one of them is: Plot3D[x (y^3 + 1)^(1/2), {x, 0, 6}, {y, 0, 2}, RegionFunction -> Function[{x, y}, y <= 2 && y >= 3 x && x >= 0]]



Only top voted, non community-wiki answers of a minimum length are eligible