New answers tagged

7 votes

Finding the height and width of a plot?

You can use the ResourceFunction GraphicsInformation to obtain this information: ...
user avatar
  • 123k
4 votes

Finding the height and width of a plot?

I think the question is about ImageSize and not PlotRange. One way to get the "current" size ...
user avatar
  • 213k
5 votes

Adding a second legend to Plot?

You can use a list of multiple legends as the option setting for PlotLegends: ...
user avatar
  • 349k
4 votes
Accepted

Making a plot half the width and height of another plot?

Is there a simple way to make another plot whose frame is is half the width and height of plot P1? I do not know if I understood the question correctly. If not, will delete this. But how about using ...
user avatar
  • 108k
4 votes

Finding the height and width of a plot?

I can suggest another simple solution: plot = Plot[x^2, {x, 0, 100}] Association[Options[plot]][PlotRange] (* {{0, 100}, {0., 10000.}} *)
user avatar
5 votes

Finding the height and width of a plot?

Finding the height and width of a plot? I think you are looking for something like the Wolfram Function Repository (WFR) function GraphicsBounds. It seems that ...
user avatar
2 votes
Accepted

Finding the height and width of a plot?

This is an interesting question and I do not think there is a general answer to your request. A simple answer might be to set the ImageSize option. This sets the ...
user avatar
  • 14.6k
4 votes
Accepted

Adding a second legend to Plot?

...
user avatar
  • 119k
5 votes
Accepted

How to connect 100 random points on a ring through the shortest path?

...
user avatar
  • 14.6k
10 votes

How can I generate a Swiss-Cheese type region and render it transparent?

...
user avatar
  • 30.4k
6 votes

How can I generate a Swiss-Cheese type region and render it transparent?

One way: Show[BoundaryDiscretizeRegion[cheese, MaxCellMeasure -> 0.001]] /. FaceForm[Directive[d__]] :> FaceForm[Directive[d, Opacity[0.5]]] Another way: <...
user avatar
  • 213k
6 votes
Accepted

Estimating values from a timeseries picture

This function should do the trick: ...
user avatar
5 votes
Accepted

RegionFunction is not working for ComplexPlot

It must be a bug. Here is a working around. ...
user avatar
  • 30.4k
1 vote

How to quickly find all grid cells covered by a geometric region?

A method based on RegionDilation introduced in v12.3: ...
user avatar
  • 14.6k
4 votes
Accepted

Making text larger without changing size of superscript?

You can style each element of the Subsuperscript independently: ...
user avatar
  • 3,472
1 vote

How to make each value of a data set a different marker?

...
user avatar
  • 28.7k
3 votes
Accepted

Overlaying lattice graph and evaluation over lattice

...
user avatar
  • 13.2k
2 votes

Overlaying lattice graph and evaluation over lattice

I would create a Plot3D of your function surface, combine it with a Graphics3D of the Points ...
user avatar
  • 1,393
3 votes
Accepted

PlotRangeClipping is not working correctly with ListLinePlot?

You have discovered another buggy case for PlotRangeClipping which wasn't fixed in version 13.0.1. It is worth to know that this bug isn't present in version 8.0.4, ...
user avatar
0 votes

Different colors for Thread in ListPlot

There are multiple ways to archive this but one (using Mathematicas automatic coloring and marker styles) is to use just a single ListPlot command to plot all the ...
user avatar
  • 2,240
4 votes
Accepted

A simple way to make one stream line in StreamPlot thicker, or change its color?

First, find the curve {x[t],y[t]}: ...
user avatar
  • 2,058
1 vote

Style Does Not Work in ListLinePlot

In my opinion, it is not possible in a ListLinePlot. The only solution is with "Epilog" Regards,....Jos ListLinePlot[{{2.1, 2.9, 2.8, 1.9}, {2.2, 2.7, 1.1, 2.2}, {2.3, 1.7, 2.3, 1.7}}, ...
user avatar
3 votes

Strange behaviour in GeometricTransformation

It must be a bug. If we replace normal from {1, 0, -1} to {1, 0, -1} // N,it work.Here we ...
user avatar
  • 30.4k
8 votes

Using circles with various radii and colors in ListPlot

...
user avatar
  • 14.6k
8 votes
Accepted

Using circles with various radii and colors in ListPlot

BubbleChart ...
user avatar
  • 349k
5 votes

Animating battlefield data map of war in Ukraine

Here is a link to a mp4 video (400 pixel width without fade transition due to memory limit in the the free basic Wolfram Cloud) 1. Fetching The idea is to search all the ukraine-project pages for the ...
user avatar
  • 7,195
0 votes

How to check if points lie within a circle

You have a circle and a set of points disk = Graphics[Disk[{0, 0}, 2]]; pts = RandomReal[{-3, 3}, {10, 2}] ptsplot = Graphics[{PointSize[Large], Red, Point[pts]}]; ...
user avatar
  • 5,684
5 votes
Accepted

How to check if points lie within a circle

You can pick points within a tolerance with Disk, that is a circular region including its inside. MemberQ generates a function ...
user avatar
  • 14.6k
4 votes
Accepted

I need to create a series of polygons from a list of lists that form a stair step shape

While others offer more compact code, here I favour strategies to keep a clean kernel, using scoping like Block to avoid leaving lingering definitions and which ...
user avatar
  • 28.7k
1 vote

I need to create a series of polygons from a list of lists that form a stair step shape

cols = ColorData[97][#] & /@ Range[10] polys = Table[Rectangle[{i, 0}, {1 + i, 10 - i}], {i, 0, 9}] Graphics[{ Transpose[{cols, polys}] }] The color list ...
user avatar
  • 14.6k
1 vote

I need to create a series of polygons from a list of lists that form a stair step shape

...
user avatar
  • 5,684

Top 50 recent answers are included