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
4
votes
1answer
81 views

How to calculate an area of a conformal map enclosed shape?

I need to calculate the area of a conformal mapping closed shape on the complex plane that gives the perimeter. I have the following parameters: ...
1
vote
2answers
87 views

How to make a discrete density plot for a two-variable PDF?

I have the following function of two variables $(1)\qquad f(x,y)=\exp[-x^{2} - y^{2} + \frac{1}{2}xy]$ which is interpreted as a two-variable Gaussian probability distribution. Concretely I want to ...
1
vote
0answers
58 views

Time Varying 3D Vector Plot Improvements [closed]

From another question, I got curious and used Mathematica's built-in features to analyze the following. $$\begin{cases} \dot{x} = 1.0(x^2 + y^2 + z^2) \sin( ~t) - 1.0\sin(t+\pi/2) \\ \dot{y} = 1.1(x^...
1
vote
1answer
80 views

Custom labels in a pie chart

Using @kglr's approach (see here) we can create the following pie chart ...
7
votes
2answers
119 views

Using mesh cell highlighting to override the default rendering of a region

The default rendering of a region can be rather uninformative. Consider this simple example. DiscretizeRegion[Rectangle[{0, 0}, {2, 1}], MaxCellMeasure -> 2] ...
0
votes
1answer
52 views

Creating a custom curved axis around a pie chart

In a recent post, we have seen (thanks to @kglr) how to create a custom pie chart ...
5
votes
1answer
127 views

How to author a workflow?

I find the workflow refpages in the doc center very helpful, and I'd like to make some of my own: Workflows seem to be notebooks of "Text" and ...
1
vote
0answers
66 views

How to draw sketches of objects using lines (curves) only

Update Thanks for your comments, now I see that it's not easy to have 3D graphics in vector form. This is fine though, because the major reason that I'd like to do it in mathematica is that I'd ...
3
votes
1answer
72 views

Create a GIF from animated plots

...
1
vote
2answers
117 views

Draw characteristic lines of ODE $\dot \gamma(t) = \sqrt{|\gamma(t)|}$ and highlight some of them

Consider the ODE $$\dot \gamma(t) = \sqrt{|\gamma(t)|}$$ with initial data $\gamma(0) =x_0 = -c^2$. The solutions of the ODE are not unique because one has $x(t) = -(t/2 - c)^2$ for $0 \le t \le 2c$, ...
3
votes
1answer
188 views

Trying to understand Electromagnetism using mathematica

I was wondering if there was a possible way to animate electric and magnetic field lines using Mathematica? I'm currently doing a physics major and taking an upper level electromagnetism course. I'm ...
1
vote
1answer
42 views

Fix “ not a Graphics primitive or directive” error in Dynamic Locator Pane

I am aware this might seem like a duplicate, however, I have viewed these posts (1 & 2) and have been unable to solve this. ...
1
vote
1answer
102 views

Use Mathematica to plot the flow of an ODE with discontinuity

How can I use Mathematica to plot the flow of the following ODE in $\mathbb R$? $$\frac{d}{dt} X(t,x) = \chi_{\{x>0\}}(X(t,x)), t \in [0,T],$$ $X(0,x) = x, x \in \mathbb R$ where $\chi$ denotes ...
6
votes
1answer
157 views

How can I make TreeForm think some elements are atomic?

I want to apply TreeForm to some expressions of the form m[m[m[y[1], y[1]], x[1]], z], but I want Mathematica to treat ...
0
votes
0answers
38 views

Scaling Coordinates after NDSolve

In order to solve a series of differential equations I had to transfer to the tortoise coordinate defined by $$x=1-\frac{r_h}{r},$$ but now I have solved them I need to transfer back to the ...
1
vote
1answer
24 views

Multiple List Plots for Arbitrary Set of Data

I'm trying to write some automated data analysis code for my research group, but I've run into a snag with Mathematica which I just can't seem to iron out. We generate data of the form: ...
1
vote
1answer
57 views

Add set of points on top of another graph and turn 3D plot to 2D

I have the following function f[x,y] and I figured out how to plot it to a specified domain, that you can observe in the code, but only in plot3D form I am trying to convert it to just a 2D graph. In ...
1
vote
1answer
83 views

Cannot plot two graphics together

I am trying to plot these graphics together. I tried with Plot and Show command but it doesn't work. Please help! ...
6
votes
2answers
276 views

Dynamically getting the complex number in a color wheel via moving mouse?

I have a color wheel domain which is used to describe complex numbers. I want to know is it possible to add a black spot which can be moved by mouse dynamically and return the complex number values of ...
5
votes
0answers
122 views

plot and sum colors of the common region in hyper-graph?

For the two complex weighted hypergraphs {$G_{1}: w1$ for edge $(d_{1},d_{2})$; $G_{1}: w2$ for edge ($d_{1},d_{3}$) } sharing one vertex $d_{1}$, I use different color for the complex angle and ...
8
votes
1answer
97 views

How can I reflect a StreamPlot object?

I want to reflect a StreamPlot object across the x = 0 line. For example, let's say I have this code: ...
5
votes
1answer
114 views

Visualise multiple Plots in Graphics using Inset

In the Generalized Linear Model, a Link function maps an arbitrary density function to an underlying Normal Distribution. Consider the LogNormal distribution, which is a continuous probability ...
5
votes
2answers
142 views

Convert Histogram from frequency of string length to percentage

I have the histogram: dataPnJ = StringLength[StringSplit[ExampleData[{"Text", "PrideAndPrejudice"}]]]; Histogram[dataPnJ] I am trying to make the histogram show ...
7
votes
1answer
377 views

Speed up animation

For a project I need to make a little animation showing what happens when you put two hexagonal lattices on top of each other and rotate one of them(Moiré pattern), and my advisor sugested using ...
4
votes
1answer
175 views

Good book on image processing and analysis on Mathematica 12

Can someone recommend a good book on image processing/analysis and graphics on Mathematica 12?
10
votes
2answers
324 views

Generating Mesh of Rotated Graphics

I have a simple geometry that consists of a few rotated rectangles ...
17
votes
2answers
779 views

Insets around a clock

I have this code to generate a clock-like diagram: ...
0
votes
1answer
182 views

How to plot a vertical line with fixed range? [duplicate]

I want to plot a vertical line on a graph. The plot range on the graph ranges from 0 - 12. I want the vertical line at x-axis = 0.8, but the vertical height going from 0 to 7 only. I am not sure how ...
5
votes
2answers
728 views

Intersection of four circles

I would really appreciate it if someone would be able to help me generate the following figure in Mathematica. This is what I have started with: ...
3
votes
2answers
100 views

Create flowsheet-like graph

I'd like to create a graph that resembles a flowsheet in process simulation applications. A concrete example would be this graph: I was able to recreate it by manually specifying the vertex ...
8
votes
4answers
531 views

Reverse color of overlapping points?

Is there a simple way to change the color of the region where two Points overlap? For example in ...
3
votes
2answers
192 views

Plotting 3D energy bands

I'm having a problem trying to plot a 3D energy band structure. Having a function of 3 variables (energy) for example: f[x_,y_,z_]:= Cos[x]+Cos[y]+Cos[z] What i ...
4
votes
0answers
75 views

Obtain complete list of built-in graphical objects, and split them into groups?

I would like to obtain the complete listing of built-in graphical objects (which can be used in Graphics or Graphics3D) ...
1
vote
0answers
36 views

ListSliceContourPlot3D plots Blanks with List1 and plots perfectly with List2. List1 == List2. Mathematica Version 10.4

I'm trying to do ContourPlots using the Function ListContourPlot3d. I have generated List1 and List2 using the following code. Here is the preliminary code to generate List1 and List2. ...
4
votes
1answer
132 views

Is it possible to use RegionFunction with Graphics3D?

I am using Graphics3D and I would like to use RegionFunction to exclude specific regions as in Plot3D but I could not. Here is ...
4
votes
1answer
81 views

Is it possible to get current thickness for every Line, Polygon, Circle object in a plot?

When exporting Mathematica graphics to raster formats with high resolution the common problem is that thickness for such objects as Line, ...
9
votes
5answers
530 views

Grainy 2D RegionIntersection Plot: How can I make it smoother?

I have the following code to display three coloured disks and their coloured intersections. However, the result does not appear to have been anti-aliased enough. How can I make it smoother? ...
4
votes
1answer
98 views

Ideas for styling graph nodes with weights

Suppose we have the following random graph SeedRandom[100] n = 15; m = 20; G = RandomGraph[{n, m}, VertexLabels -> "Name"]; and a list of weights for the ...
2
votes
0answers
39 views

Tick marks don't follow FrameStyle/FrameTicksStyle specs [duplicate]

Run the following code and examine the thickness of tick marks carefully in the produced PDFs. ...
1
vote
2answers
119 views

Animate Graphics3D plotting with color gradient

This is a bit of a two part question about optimizing some 3D plotting - it's pretty straightforward but after a while struggling with it I haven't made much headway. Assume some list of 3D points, i....
0
votes
0answers
28 views

The problem in finding a connected path through square lattice

I have a LxL square lattice. I randomly chose some points on this lattice and take them as my points. I want to find a connected path from left(0) to right(L). Below is my code: ...
0
votes
0answers
43 views

Mapping a flat unit plane composed of polygons onto a cylinder

I'm looking to map a flat plane composed of triangles onto a cylinder, and then ultimately use a manipulate function to show the plane wrapping into a cylinder. Here is the code I have so far, I've ...
0
votes
1answer
78 views

Two animations on the same ListAnimate plot

I have a code that produces two lists to be animated using ListAnimate and I want to have these two animations taking place on the same plot but I can't see a clear way to do this and was wondering if ...
1
vote
1answer
61 views

Can I label a point in a Plot3D? and how

This question comes after I received some nice answers of yours, concerning the labeling of intersection points of two curves in the , see hereHow to label intersection point in Plot The answers I ...
2
votes
1answer
53 views

How to get rid of clipping artifacts?

The following is a MWE extracted from a more complex graphic. ...
1
vote
1answer
54 views

How to make the Plot3D with colors?

I would like the make a 3D Graph with Plot3D like the following picture shows: So I write in the notebook of Mathematica the following : Plot3D[x^2 + y^2, {x, -2, 2}, {y, -2, 2}] But which option of ...
3
votes
1answer
95 views

How to put a label on the intersections points

I am really new to MATHEMATICA and I am struggling to make a nice graph as follows: I am stuck a bit as I cannot put labels on the intersection points....I do not want to use the drawing pallete as ...
0
votes
0answers
71 views

How to plot a 3D function and an arrow pointing in the direction of the gradient vector?

I need to plot a 3D function and show an arrow pointing from the curve into the direction of the gradient vector. I also need to plot a ContourPlot of the level surfaces of the function, also with an ...
2
votes
1answer
67 views

Axes label outside plot without Frame

I'd like to draw a plot with the $x$ and $y$ axes labeled outside the plot and along the axes (with $y$ axis rotated)--not at the end of each axis--as in this Matlab plot. Moreover, I do not want to ...
3
votes
1answer
74 views

How do I color edges on a graph using a pattern?

I have the following code, an attempt to color the even branches of a tree... but it’s not working correctly: ...

1
3 4
5
6 7
73