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

3,973 questions
Filter by
Sorted by
Tagged with
1answer
34 views

### Rasterize a graphic with Background None gives unexpected result using GradientFilling

I would like to combine several images with ImageCompose using Images and rasterized graphics. When I create a Disk with ...
2answers
604 views

### PlotStyle like ocean waves?

I wonder how one can manipulate options like PlotStyle, Lighting, and Specularity to make ...
1answer
75 views

### Avoiding graphical “noise” when combining plots with Show

I use the command Show to combine plots of mathematica. For instance, the code below produces the picture below. As you can see there is some "noise" ...
2answers
183 views

### How to get a clean RegionDifference product

I want to get the difference between the following two regions, an annulus and a crown: Here's the code: ...
1answer
73 views

### Region for polygonal frustum?

An example of a frustum of a hexagonal pyramid (a.k.a. hexagonal frustum) from Wikipedia: Is there a quick way to build one, given the Region of two $n$-sided ...
4answers
220 views

### Construct a permutation tree plot

How to construct a tree like this? I was looking CompleteKaryTree initially, there are some similarities overall, but it's still different. ...
1answer
88 views

### Change mesh density of Graphics3D object made of Triangles

I am new to mesh discretisation on Mathematica. I have a Graphics3D object made up of Triangles, that I would like to convert ...
1answer
996 views

### How can I handle graphics or artworks with millions of points?

As a hobby, I am trying to use Mathematica and Wolfram Language as a tool for making generative artworks. Generative art techniques may require drawing millions of points, lines, or curves. For ...
2answers
202 views

### Replace a color in image with hatchfilling

Is it possible to identify a color (say grey in a 3 color Black, Gray and White image) and ...
2answers
183 views

### How to plot the given trihexagonal network?

Following my previous question How to plot the given graph (irregular tri-hexagonal) with Mathematica? I need a 2D network of the Fig. $a$, something like Fig. $b$ with red points on all vertices. ...
2answers
206 views

### How to plot the given graph (irregular tri-hexagonal) with Mathematica?

Is it possible to plot the following graph with Mathematica (with red points on all vertices)? Since I have drawn the plot manually, it is not very clear, but the lengths of the edges are as follows ...
2answers
56 views

### How to add the weights to the transition graph of a Markov chain?

The following working program uses Graph and Markov Chain ...
1answer
155 views

### Is it possible to define RGB colors to be used in MaTeX? How?

My system: Windows 10, Mathematica 11.2, MikTeX 2.9 I am in the process of learning more about the features of Szabolcs Horvát's nice paclet. This time I am toying with the color choices for the ...
4answers
221 views

### How to partition a square into successive halves

I am teaching the idea of infinite geometric series to high school students, looking for hints to create the diagram below using Mathematica. (I don't need the labels). I can do it manually, but ...
3answers
114 views

### Labeling cluttered vertices

I am trying to create a ConvexHullMesh plot where the vertices are labeled with their positions. I generate the ConvexHullMesh using ...
1answer
70 views

### Remove white border around GraphicsRow, GraphicsGrid, GraphicsColumn?

When displaying images with GraphicsRow, GraphicsColumn, and GraphicsGrid, a thin white ...
1answer
88 views

...
1answer
48 views

### Is there a way to add graphics to Show and keep the image “still”? [closed]

Let's say I'm writing a PDF presentation such that on slide 1, I want to show a sphere, and on slide 2 I want to continue showing the same sphere plus a point. I could draw these in Mathematica using <...
1answer
81 views

### Can a LatticeData image show more than a unit cell?

I have an interactive code for showing the crystallographic in Mathematica. ...
2answers
146 views

### How to add vertices in the given code?

I use this code ...
1answer
49 views

### Cannot get aspect ration to 1 with simple Graphics [closed]

I am learning Mathematica and doing a simple animation project which animates the harmonic motion of a pendulum. For some reason, I cannot get the simplest thing to work -- the aspect ratio for my ...
1answer
329 views

### Graphics not correctly produced when saving to PDF in Version 12

12.0.0 for Microsoft Windows (64-bit) (April 6, 2019) How do I get my graphic to look the same in PDF as it does in a Notebook? This is what the graphic looks like in the FrontEnd: This is how the ...
1answer
279 views

### GeoGraphics Day/Night way off

I've been struggling to figure out the correct GeoGraphics options to get the desired results. Here's what I have so far and the results that I'm getting: ...
3answers
90 views

### ListPlot3D from Data Fortran file

My .dat file (Fortran) consists of data (x y u) as three columns and I would like to plot the variable "u" against the variables "x" and "y&...
1answer
52 views

### Dashed arrowhead when exporting to PDF

Dashed styling gets erroneously applied to the head of an Arrow when exported to PDF in version 12.1-12.2 on Mac -- it looks ...
1answer
99 views

### Multiple two-dimensional plots in 3D visualization

How can I produce this kind of plot? Please help
0answers
62 views

### How to reduce the number of triangles in a mesh? [duplicate]

I am trying to turn a Graphics3D object (the Stanford Bunny) into a mesh. The result from using DiscretizeGraphics has too many ...
0answers
37 views

### How to get Callout and Text[…,Offset[…]] to use the same coordinate system in Mathematica 12?

I could have sworn this worked in a previous version of Mathematica, but when I transcribe the coordinates used to label text offsets, I get errors like ...
3answers
354 views

### Simplifying code that displays a square rolling inside a circle

The vertex A,B of the square ABCD with side length $\sqrt{2}$ is on the circle with radius $\sqrt{2}$, vertex C,D is inside the circle, roll the square ABCD along the inside of the circle ...
3answers
233 views

### Getting the coordinates of points along a poly-line shown in graphics

I have been trying to obtain list of {x,y} coordinates from this code ...
1answer
108 views

### Creating a plot for a solid (torus)

We have the following two equations: Sqrt[1 - (Sqrt[x^2 + y^2] - 3)^2], -Sqrt[1 - (Sqrt[x^2 + y^2] - 3)^2] and these have to be plotted into a parametricplot3D and regionplot3D, and these would yield ...
2answers
679 views

### Is it possible to ask Mathematica to draw a plot like the given one?

Is it possible to ask Mathematica to draw a plot like this?
2answers
68 views

### Tightly crop styled Text in a Graphics box

I am running Mathematica 9, which I realize is quite old. I wrote the following code to output a Graphics environment containing some styled text. But, as you can ...
2answers
365 views

### Plotting an image of a discrete dynamical system

I am trying to plot a discrete dynamical system of the form $$\vec{x}_{k+1} = A \vec{x}_k$$ where $A$ is a $2\times 2$ matrix in the form $$\begin{pmatrix}a&b\\c&d\end{pmatrix}$$ where $a$, $b$...
0answers
37 views

### How to set focus in a dynamic graphic with InputFields

Happy New Year! I am trying to set cursor focus in this timetable application. When the minutes are all entered the activity blocks resize. Tabbing out of the minutes field moves focus to the ...
0answers
37 views

### How to display multiple 2D plots in 3D format with legends? [duplicate]

How to display multiple 2D plots in 3D format with legends?
1answer
33 views

### Accessing InputFields within dynamic graphics without multiple clicks

I'm trying to write a timetable application. (The activity blocks are to be resizable and reorderable.) A problem I have run into, which might be a showstopper for this approach, is that entering ...
0answers
75 views

### How to show recursive computation graphically?

I am studying the book "Computer Science with Mathematica" from R. Maeder. The following piece of code solves the Knapsack Problem recursively: ...
1answer
79 views

### Grid or TextGrid constant width cells

I am having problems with white spaces in lists displayed in Grid. The problem is that white spaces have less height and width compared to cells that contain text. I also tried none, None, None[], ...
1answer
616 views

### Programming a bishop's move on a grid

I am simplifying the question i need too work with, any advice on how to proceed for each step would be appreciated(no answers) I have a square grid of size a by b, inside the cell is an object that ...
2answers
67 views

### RegionIntersection: extra intersections

I have got an array of points, which can be represented as a ListLinePlot. Then I am trying to find the number of intersections of this ListLinePlot with a certain line. Obviously, in the demonstrated ...
2answers
151 views

### How to get rid of Manipulate frame?

Does anyone know how to get rid of the grey box in Manipulate plots? I find that they look clunky and would look much cleaner without the box, but I am very new to the software so I don't know how I ...
1answer
34 views

### Use layout of directed graph in an undirected graph

I'm fond of the default vertex and edge layout for a directed graph: ...
0answers
34 views

### How to Inherit Arrowheds size?

I'm trying to write a Module that produces some arrows with custom Arrowhead shapes. However, I want the code external to the <...
1answer
65 views

### How to combine bumps and dimples?

I'm working on a set of diagrams to try to make interesting math activities for positive and negative integers. These diagrams look like this. (This diagram would represent 4-3=1. Later, I'll test ...
0answers
74 views

### Exported arrow to PDF or EPS messes up its tip [duplicate]

The code g = Graphics[{AbsoluteThickness, Arrowheads[0.5], Arrow[{{0, 0}, {1, 1}}]}, PlotRange -> {{0, 1.1}, {0, 1.1}}] Export["Arrow.eps", g]; ...
2answers
111 views

### Stretchable parentheses in text labels in Graphics

I'm trying to annotate a plot with points of the form $\left(\frac{1}{2},\frac{1}{2}\right)$; my problem is that the parentheses don't stretch to cover the fraction. I think that what I want to do is ...
1answer
86 views

### Find the Hill Estimator of “alpha”

I am trying to get the Hill estimator of "alpha" and the Hill-plot graph from a standard Cauchy distribution. So, how to get it? Thanks! Hill estimator can be outlined as follows. Generate ...
0answers
43 views

### Problem with a BarChart

I have problems with a graph, First: I am using data from a list, before I used RamdomReal, but I can't get it to work. Second: the statistical data doesn't appear in the graph, I do not know why. ...
0answers
40 views

### Why is dual-scale plotting so complicated per the official function?

The page "How to | Generate Plots with Two Vertical Scales" describes an official recommended way to plot two functions with different vertical axis scales. The solution, in my opinion, is ...