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
0
votes
0answers
35 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" ...
3
votes
1answer
98 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: ...
4
votes
1answer
54 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 ...
6
votes
4answers
182 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. ...
1
vote
1answer
52 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 ...
15
votes
1answer
889 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 ...
8
votes
2answers
163 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 ...
4
votes
2answers
165 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. ...
5
votes
2answers
189 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 ...
1
vote
2answers
45 views

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

The following working program uses Graph and Markov Chain ...
2
votes
1answer
45 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 ...
8
votes
4answers
206 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 ...
3
votes
3answers
109 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 ...
1
vote
1answer
47 views

Remove white border around GraphicsRow, GraphicsGrid, GraphicsColumn?

When displaying images with GraphicsRow, GraphicsColumn, and GraphicsGrid, a thin white ...
1
vote
1answer
47 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 <...
4
votes
1answer
72 views

Can a LatticeData image show more than a unit cell?

I have an interactive code for showing the crystallographic in Mathematica. ...
3
votes
2answers
140 views

How to add vertices in the given code?

I use this code ...
0
votes
1answer
48 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 ...
10
votes
1answer
301 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 ...
5
votes
1answer
268 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: ...
2
votes
3answers
83 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&...
3
votes
1answer
41 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 ...
2
votes
1answer
81 views

Multiple two-dimensional plots in 3D visualization

How can I produce this kind of plot? Please help
2
votes
0answers
61 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 ...
0
votes
0answers
30 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 ...
11
votes
3answers
310 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 ...
5
votes
3answers
224 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 ...
2
votes
1answer
76 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 ...
4
votes
2answers
666 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?
3
votes
2answers
66 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 ...
4
votes
2answers
283 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$...
1
vote
0answers
33 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 ...
1
vote
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?
2
votes
1answer
31 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 ...
2
votes
0answers
72 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: ...
4
votes
1answer
73 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[], ...
12
votes
1answer
609 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 ...
2
votes
2answers
65 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 ...
4
votes
2answers
137 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 ...
2
votes
1answer
27 views

Use layout of directed graph in an undirected graph

I'm fond of the default vertex and edge layout for a directed graph: ...
1
vote
0answers
33 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 <...
3
votes
1answer
57 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 ...
5
votes
0answers
72 views

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

The code g = Graphics[{AbsoluteThickness[20], Arrowheads[0.5], Arrow[{{0, 0}, {1, 1}}]}, PlotRange -> {{0, 1.1}, {0, 1.1}}] Export["Arrow.eps", g]; ...
4
votes
2answers
101 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 ...
0
votes
1answer
70 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 ...
0
votes
0answers
36 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. ...
2
votes
0answers
38 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 ...
3
votes
2answers
53 views

How to display label text outside plot range and enable PlotRangeClipping?

I have been trying to modify a clipped graph by adding a text a label outside the frame, with no success so far. Code for contour per request to get the rest of the ...
0
votes
1answer
91 views

Ugly text in shaded graphics [closed]

I've looked around but can't find the solution to the following problem: Why is text so ugly in shaded graphics (ContourPlot, etc.)? Here's an illustration: ...

1
2 3 4 5
77