Questions tagged [graphics]

Questions on the construction of 2D and 3D graphics through the direct use of primitives, directives, and functions. Include the graphics3d tag for questions specifically on 3D graphics. This tag is not to be used for basic questions on visualizing functions and lists using the various flavors of Plot commands.

Filter by
Sorted by
Tagged with
14
votes
3answers
884 views

Rounding an Irregular Polygon

Consider a random irregular convex polygon, for example, the 6-side polygon I want to define a function that, given a certain parameter r (roundness), rounds each ...
5
votes
3answers
95 views

Color function for ListPlot

I have an array of the following form {{a_n,b_n,c_n}} where n is quite large. I wish to plot ...
4
votes
2answers
57 views
9
votes
2answers
346 views

Drawing lines between nearest neighbor points

I am reading a file with 4 columns (índex and 3 coordinates) and I want to plot spheres at these positions: ...
2
votes
0answers
78 views

Finding percentage of points within tilted ellipse?

I am trying to find the number of data points that I have that are within a tilted ellipse that I have generated to represent the 68% confidence region. I generated some data using: ...
6
votes
2answers
133 views

Making a Sierpinski triangle from a Pascal triangle

I am creating triangular arrays similar to Pascal's triangle. In an answer to this post, J.M. gives the following code: ...
0
votes
0answers
41 views

The graph output of an xml format and the output of Mathematica

Based on below command: ...
3
votes
1answer
87 views

Tick frequency (monthly to quarterly ) on DateListPlot

Probably a mundane question, but I am stuck. I have a time series of monthly observations, where the dates are specified as follows. ...
8
votes
1answer
196 views

Drawing the basin boundaries

In my case, I need to use the following data file Let's plot the basins ...
1
vote
1answer
58 views

Combining two plots with different x-axes and not labeling the x-axis

Below two figures are just for example. What should I do if I want to plot the two figures below on the same plot with the same y-axis only that the x-axis is also same but not labeled such that. As ...
3
votes
1answer
78 views

How to turn a collection of contour lines into a printable object (mesh, etc)?

Inspired by Henry Segerman's developing fractal curves, I decided to try to convince Mathematica to do something similar. The inspiration for cf, f, and g below came from How to make this Dragon Curve?...
0
votes
0answers
31 views

Hyper disk in $\mathbb{R}^n$ of specified radius

A very useful geometric and Graphics3D object is Hyperplane[n,p] which is an infinite hyperplane in arbitrary dimension $n$ with ...
5
votes
2answers
305 views

How to draw the outline of an icon made of several polygons?

I have an icon defined like that: speakerIcon = Graphics[{ Triangle[{{0, -1}, {1,1},{-1,1}}], Rectangle[{-1, -1},{1, 0}] }, ImageSize->20] I can ...
0
votes
0answers
49 views

Use Mathematica to draw a tensor-like network

What are the Mathematica ways to draw this seemly delicate figure? Such that we can output a PDF file in the end.
4
votes
0answers
34 views

How to fix the legend and dotted edges in WolframCloud?

Following the problems in my previous question: How to get good images for Graph in Published Notebooks I found a way to fix the aliasing issue, apparently, the ...
2
votes
2answers
78 views

Scaling and Stretching a Mesh

I have a Voronoi mesh, given by ...
0
votes
0answers
55 views

How to plot a series of arrows from a list of vectors?

Suppose I had a list of 3-vectors as a time series like the following: ...
2
votes
1answer
45 views

Addint surface features to ellipsoid to visualize rotation

I am currently plotting an ellispoid using the following code ...
2
votes
1answer
116 views

Make a 3d plot of 2d “slices”

I have two 2D plots which came from taking slices of a 3D data set of the form (x,y,z,intensity). I manually "sliced" the data set to get the slices I wanted from two planes of interest and plotted ...
4
votes
0answers
67 views

How to get good images for Graph in Published Notebooks

Consider the following Graph as an example: ...
1
vote
1answer
58 views

Mathematica image won't display

I need some help getting RegionPlot to display. Running this code: ...
11
votes
3answers
168 views

Independent RoundingRadius specifications for all corners

I need help creating a Rectangle (or Framed object) where the roundness of each corner is specified separately. For example, I ...
4
votes
1answer
71 views

MaTeX shadow option?

When I create my graphics, I find that the tex objects created with MaTeX either clash with other objects (such as a coordinate grid) or, if I add a background, erase too much. Is there another option ...
19
votes
3answers
1k views

How to make this Dragon Curve?

I made it by another software, and met some problems to change it into MMA code. ...
1
vote
1answer
68 views

Why can I not adjust the point color? It just goes black

Here is my code here. Please help me correct this. How to make these 2 points Blue and Orange respectively? ...
0
votes
0answers
33 views

Why does using `Plot3D` with `RealAbs` cause a white space at kink but using `Abs` doesn't?

Consider the following plot: Plot3D[RealAbs[(x-5)+y],{x,4.999,5.001},{y,0,0.001}] The above plot has a white space where the derivative has a discontinuous jump (...
1
vote
0answers
62 views

Reversing x-axis scale in ListPlot3D

I am trying to reverse the x-axis using ScalingFunctions but it's not working. I have a 3D plot with x, y and z scale in increasing order, but I want the x-axis to ...
2
votes
0answers
32 views

can I plot a manipulable 3d graphic?

I am a petroleum engineer, I want to plot a wellpath in a 3D graphic if possible, I have the following data: Measured Depth, Inclination, and Azimuth. Can I plot a 3D fully manipulable graphic on ...
0
votes
0answers
50 views

Problem with animation

I am trying to animate an elastic collision and i don't how to code to describe the motion after the impact. Here's a piece of code: ...
0
votes
1answer
46 views

How can I plot function density plot Hyper-geometric /Bessel function with complex arguments?

I am interested in the plot of a function in terms of hypergeometric and Bessel function with complex arguments, Here, it is my code, but the result is incorrect, the solution must be defined every ...
5
votes
1answer
50 views

Image artifacts while using BSplineCurve

Mathematica provides an example of visualizing a Hilbert curve using splines as a Graphics object in this entry in its documentation system. However, when one attempts to change the thickness, some ...
4
votes
1answer
42 views

Rotate Ticks in a Histogram

I have a histogram like the one presented here by @kglr (Combine BarChart and TimeLinePlot). For the sake of brevity, I excluded the issue with timelineplot: <...
0
votes
0answers
47 views

Workaround for Opacity + Magnify bug in version 12?

Is there a workaround for the following bug in version 12.0.0. This is in MacOSX. ...
1
vote
1answer
61 views

Denominator contribution in a 3D Plot

In an earlier post I asked for a 3D plot of Plot3D[Sqrt[((x^2 + y^2)/((x*y) + 1))], {x, -20, 20}, {y, -20, 20}] along with it's integer roots and in turn plot of ...
1
vote
2answers
60 views

How to add colors and legends to plots with “Show” [duplicate]

I have lets say three plots A, B, C. I know that in order to plot them on top of each other I can use Show function and it will show them all together, Is there a ...
0
votes
0answers
48 views

How to use MMA to make these triangles into a Pentagon according to the equal length side?

I tried to use Polygon but failed. ...
10
votes
2answers
692 views

How to draw a Pythagoras tree like this

I want to draw a Pythagoras tree like the one below: But I can only do this now, and still can't do random colors. ...
13
votes
3answers
596 views

Generate better looking correlation table

I have this code: ...
3
votes
1answer
134 views

Mathematica's Graphics imperfections (deficiency)

The following Graphics behavior is annoying. Plotting several identical lines over each other makes the line thicker and thicker. But the correct behavior should be - the line should stay same no ...
1
vote
1answer
89 views

How can I plot the “sol” in the following?

I'm trying to plot the following differential equation for different values of P but no succes: ...
0
votes
1answer
46 views

Control line thickness in 2D graphics in terms of original coordinates

I would like to create a 2D graphics with lines, connecting points at integer coordinates and control the line's thickness expressed in the original coordinate system. E.g. ...
1
vote
1answer
40 views

How can I give different colors to each ListLinePlot combined with Show[]

I tried to assign different colors for each ListLinePlot combined with Show, but none of the things I tried with ...
3
votes
1answer
57 views

How to draw graph consists of nodes with half edges attached to them?

I want to draw a graph with some nodes and some half edges attached to them. Basically something like number a) in the following picture Of course I can just draw each node and each half-edge one by ...
4
votes
2answers
101 views

TableView: How to change column headings?

I am not even sure whether it is possible. I would like to change column headings of TableView output to letters such as A, B, C etc instead of 1,2,3. Here is an example: ...
-1
votes
1answer
47 views

frame->False not working [closed]

Plot[x, {x, 0, 5}, Frame -> False, FrameTicks -> None, FrameStyle -> Directive[Red, Dotted]] I also tried FrameTicks none, and it doesn't seem to be ...
12
votes
2answers
582 views

A Smooth and Round Voronoi Mesh

I want the edges of a VoronoiMesh to be smooth and round. I have found the following code from this answer ...
1
vote
1answer
62 views

Showing all elements from a list

I have a list with graphics. Some of elements in the list are None type, how can I display all elements from that list on one picture? ...
12
votes
2answers
205 views

Adding positional guides to multiple points in 3D plots?

I have a graph showing multiple points in 3D space and need to accurately be able to represent their position. I'm looking to add dropping points underneath similar to this example graphic: I could ...
2
votes
2answers
86 views

Gridlines for multiple plots when displayed by Show

Question Suppose that I am using Show to display several plots — for example, two plots and three contourplots. Is there a nice way to add gridlines? Elaboration ...
1
vote
2answers
121 views

Why aren't CirclePoints[] evenly distributed? [closed]

If you run something like this; ...

1 2
3
4 5
72