# 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,645 questions
Filter by
Sorted by
Tagged with
109 views

### How to draw one-line Venn diagram?

This is the a list of set. ...
61 views

### Three-Set Venn Diagram with Varying Radii not Drawing Full Circles

Here is the code that I have: ...
68 views

### How do I reflect changes to the intensity values in the 3D Shepp Logan data visualization?

I have been doing a self study on the 3D Logan Phantom developed by CG Koay and research group. A mathematica notebook from this group is available here. The codes present a 3D visualization of a ...
99 views

### slow and jerky Graphics in 12.1.1 compared to older version 9.0

Consider the following piece of code ...
61 views

### How to find the number of cells that one point can be in?

I draw the attached plot drawn with the following code. Each color represents a cell. How can I find the average number of cells that one user (any point within the square) can be in? By average I ...
307 views

### How can I plot these figures?

How can I plot these kinds of figures, with Mathematica? The data is: ...
18 views

### Common AxesLabel for a Grid of 3D plots

I have the following plots ...
177 views

### How to stop Mathematica 12.1 from chopping off the axes arrows?

Using the following code, I make a simple graph that is exported to pdf: ...
38 views

### How to set the thickness of plot ticks?

I want to draw a plot with specific ticks. So I added the Ticks property. Now, I also wish to enhance the ticks, so I tried to manipulate that using ...
169 views

### 3D plot with constraints

Given the 3D plot Plot3D[Sin[x y], {x, 0, 2 \[Pi]}, {y, 0, 2 \[Pi]}], how can one highlight the portion with $x+y=1$.
45 views

### How to add two labels to a point in ListPlot, and how to control the precise positions of those labels?

ListPlot has the option to label points using Labeled or Callout. At least those are the two ...
122 views

### How to create a plot of vectors emanating from the x axis?

I am trying to make a plot that looks something like the image seen below: So far I have the following code: ...
75 views

### Plotting two functions into one plot with two y-axes. Is there a built option for this in newer versions of Mathematica?

I am looking into possibilities to plot two functions into one Plot, but with separate y-axes. I came across several variants of how to do this when searching for ...
37 views

### Rendering graphics: UsingFrontEnd vs using a front end

I'm trying to understand how Graphics expressions are rendered. I create an invisible notebook, write a cell and evaluate it, then rasterize the notebook. ...
50 views

### How to draw two vertical lines into a Plot or ParametricPlot and fill / shade the region between them?

I will give an example of a regular Plot, but I also need this to work for a ParametricPlot. Say I have ...
28 views

### Outline Color in RegionPlot & Labeling

I would like to: change the outline color to be black, for both regions, rather than the current blue and orange. Is this possible? I would like to label the white area above the b2 = 3.1 line as &...
139 views

### How can I reproduce this correlation map based on data?

I am trying to produce a correlation map for some NMR experiment with this data. I tried to plot the data with Mathematica but the result was not close to my expectation. Hence, I tried plotting the ...
45 views

### Can I make the locators in a locator pane move over the whole pane?

I'm trying use LocatorPane to produce locators that can move anywhere in the entire row of text I am displaying and not just in one of the rectangles, which is what ...
44 views

### Table does not give out any output while Animate or Manipulate work [closed]

I was playing with this program and I noticed that I can use Manipulate or Animate, but Table...
164 views

### How to solve system of PDE's with complicated initial and boundary conditions

I am trying to solve the Cavity problem given in Paper by Mansour et al. with a physical model . System of PDE and B.C are . How can I impose boundary conditions like this? Code ...
44 views

### VoronoiMesh with boundary edges removed

I would like to create a Voronoi diagram without the boundary edges highlighted. This code gVD = VoronoiMesh[X, MeshCellStyle -> {{1, All} -> {Thick, Red}}] ...
105 views

### Drawing a “realistic” VoronoiMesh

Consider a set of points generated via Lloyd's relaxation algorithm ...
47 views

### How to represent a data list by arrows?

I have a code that builds a plot with 7 functions and mark 4 points. Each level of list data describes a function (see below). The curves are created from the "data" input from ...
51 views

### Aerodynamic Analysis on Mathematica

Are there any mods/addons that we can use to analyse the aerodynamics of certain objects visually? Also, is there any built-in thing on Mathematica that allows us to analyse aerodynamics?
40 views

### How do you define the domain and range of the variables for a plot?

How do I define the domain to be only reals and the range to be only complexes? Everytime I plot using ComplexPlot[], I get a C->C function so there are basically too many variables to plot and I ...
21 views

### Difficulty refactoring a graphics point from displaying a tooltip to a label when using show to combine point with a plot

I have a Plot[...] of a system of linear equations and a function graphicsPoint[...] that generates a graphics point to show ...
70 views

### How to generate blobs of a given circularity?

I'm trying to generate some "imaginary" geographic regions (think of it as islands, for instance), by generating random blobs/blots. Currently, I'm using Szabloc's blotc[] function. However, ...
88 views

### Merge vertexes that are close together in MorphologicalGraph

Suppose I have a image and I take its MorphologicalGraph by using the following code: ...
155 views

### Extract individual white parts of binarized image

Suppose we have an image, like so: and I managed to create its MorphologicalGraph by using ...
38 views

### Trouble with VertexLabel in RelationGraph

I have a bunch of high dimensional data and I want to use a graph to plot relationships among that data. To keep things small, say the data is ...
295 views

### Graphics Glitch or Modern Art?

I was trying to draw a simple surface and ended up with some modern art... if we start with a surface defined by a Gaussian shape and plot it, all looks well: ...
99 views

### Finding lower boundary of a 3D object in list format

I have the following point list and would like to find the points located in the lower boundary of the 3D object (It is part of a body torso). https://pastebin.com/L12n0Gfr I am using the following ...
18 views

### How to generate a region with a finite width/height on say $y$-direction, but infinite on $x$-direction?

I want to use such a region as an Epilog in other figures. I have tried with HalfPlane, thinking ...
134 views

### Peculiar behaviour in the implementation of “Filling”

I was working with mathematica and I need to use "Filling", however I notice that it doesn't work when you have "small" numbers, for example if I make the following: ...
96 views

### 3D Histogram from discrete data

I have some (discrete) data of the type $\{x_i,y_i,z_i\}$ ...
45 views

### Evaluation of Graphics3D transforms [duplicate]

I want to find the centroid of a graphics primitive after a series of rotation and translation transforms. But it seems that graphics transforms don't "evaluate". For example, ...
437 views

### Filling gradually varied colors under a function curve

I would like to plot a figure with a top to bottom gradient like this: I drew this figure using Matlab. Is it possible to plot a similar one using Mathematica? I googled some posts, but I do not know ...
44 views

### How to calculate the closeness between two curves

In engineering practice, it is often necessary to evaluate how close a curve is to the standard curve to evaluate the roughness parameter corresponding to the object. I want to know which built-in ...
206 views

### Rotate 3D graphics without changing size of the object or image size

When I rotate objects they change size. Is there a way to fix it? Below are 2 different attempts with the same result. I even tried to put transparent sphere around it, but the problem remained. The ...
37 views

### How to combine FontWeight option with Text[]?

Does anyone know how to combine the FontWeight option with Text[] items in Mathematica? It works fine with Style[], according the documentation. However when I feed this to Text[] (to then feed into ...
32 views

### ListContourPlot returns blank square

I have a set of values of a function of X and Y defined as sample={{x1, y1, f(x1,y1)},{x2, y2, f(x2,y2)}{x3, y3, f(x3,y3)}...} I want to do a list contour plot of ...
102 views

### How to create a clock model with any numbers in Mathematica?

I wonder how to create a clock-model in Mathematica. I got this model image from a maths group, I am posting this for reference. I wish to create a clock model like this with any numbers. Any help ...
167 views

### Having difficulty plotting linear system of equations

I have a function eqsfromMatrix[..] that generates linear equations from a matrix which I would like to plot but there seems to be no direct way to plot them. I ...
40 views

### How to define a cube unit based on Graphics3D [duplicate]

I would like to ask,how can we draw 50 spheres of radius 0.1 (randomly) in the unit cube. This is my first try, ...
90 views

### Find x-intercept when maximum slope of tangent intersects a point

If I have the following data: https://pastebin.com/ZY4zFJYK and the following code: ...
73 views

### Tangent line, slope and intercept at y=0 from data points

If I have the following data: https://pastebin.com/ti6pwnPP Which plotted with ListLinePlot[data] looks like: Questions: 1) ...
79 views

### Detect if any edges cross in a graph with a specified layout

I have some Graphs for which I have explicitly specified both the VertexCoordinates and the ...
28 views

### sequential execution of Show with two input streams, one of graphics object and another of characters

The question is how to sequentially execute Show with two streams of input. The first is graphics object stream and the second is a character stream for supplying labelling for the graphics. I tried <...