Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
1answer
39 views

Smoother cones and better 3D arrows in Graphics

I have this code: ...
1
vote
1answer
70 views

Numeric data from a color map

Importing the following image (without a scale): and knowing the extreme temperatures, is it possible to obtain the graduated scale? Also, it would be interesting to get the temperatures of all the ...
2
votes
0answers
26 views

Why is ColorFunction called more than once for every color cell

I was trying to use a custom ColorFunction with Raster and I noticed it gets called seemingly a random number of times for each ...
-3
votes
0answers
83 views

How to recreate this animation? [on hold]

I would like to recreate this animation of a black hole made by wavegrover, also seen in this Quanta article: I’m not sure what 3D function this is, but being able to plot a static version of it ...
0
votes
1answer
56 views

RepeatedReplace (//.) not working as expected within an expression in a graph

I'm plotting a tangent line to a region and, depending when I evaluate it, I get inconsistent results. I want to use the first way of doing things for flexibility but it doesn't seem to be working. ...
7
votes
2answers
300 views

How to color nodes in a adjacency graph with different colors?

Let us consider a binary adjacency matrix $M$. We want to color the nodes of corresponding adjacency graph with 4 different colors such that two adjacent nodes have different colors. How to find 4 ...
0
votes
1answer
48 views

how to generate a bezier curve using 4 points(arbitrary), without using the built-in function of Mathematica?

the main point is that we do not use the built-in function in Mathematica, instead use a step-by-step program to solve it?
0
votes
1answer
25 views

Why does trying to plot the solution to this system of ODEs this way lead to errors?

I would like to plot the curve $\alpha(s) = (l(s), h(s))$, where $l$ and $h$ are the solutions to the system $l'^2 + h'^2 = 1$ and $l'h''-l''h'=h'\tan(l)$. Here's what I tried: ...
0
votes
1answer
45 views

Can `PlotRange` of x-axis automattically determine y range?

PlotRange can specify the plotting range in each direction. Let's say you have a large set of data and you may want to plot parts of it by specifying the ...
0
votes
0answers
29 views

CUDAQ::internal: CUDALink experienced an internal error

I have Mathematica 11.0.0 installed on Windows 10, with an NVIDIA GT 630M GPU on my Dell Inspiron. I am trying to run the CUDA examples in the Help files. All of the setup functions for CUDALink work ...
0
votes
1answer
19 views

How to make object to be transparent?

code follows Graphics3D[{EdgeForm[None], Import["ExampleData/seashell.stl", "GraphicsComplex"] } ] can i make the seashell to be transparent? example from ...
0
votes
1answer
42 views

Animate a graphics with derivative function that gathered from NDSolve

I'm defined W[t] and Q[t] like below. This code is an example that shows my problem. My real code is very long and complex that i cant make change in it. I solved my differential equations but sum ...
1
vote
1answer
59 views

Epilog and Prolog not ploting for small PlotRange

I have an automated process that produces plots that will be on a y-axis range of somewhere between zero and 1. I need to highlight certain bands in the plot that are a result of calculations in the ...
4
votes
2answers
253 views

How to graph multiple lines of the same color that each contain multi-colored points

I need to make a graph with multiple lines and points. Each line contains 3 points that should each be colored black, yellow, and red. The line should be a neutral gray. I managed to create a graph ...
2
votes
1answer
45 views

Unexpected text alignment behaviour when using a SwatchLegend with Inset

If I create a legend panel with a label which includes the new line escape character "\n", e.g. ...
3
votes
2answers
82 views

Stacking plots over common X axis

Is there a good way to stack plots that share a common X scale, but not a common Y scale? A toy example: ...
3
votes
1answer
46 views

TimelinePlot; How to control what happens when the mouse hovers over an entry?

When you hover over an event in a TimelinePlot the border around the event thickens and a Tooltip message gives the date. How ...
5
votes
1answer
42 views

TimelinePlot with data above and below the line

I have to do a talk about how simulation and testing are coming together. So I have been developing a historical list of events in simulation and events in testing (please add to them if you wish). ...
0
votes
0answers
34 views

FacialFeatures is not a Graphics primitive or directive

This is my code, and he work perfectly, except "Graphics", its not showing the rectangle on my face. The message is: FacialFeatures is not a Graphics primitive or directive. Can someone help me? I ...
1
vote
0answers
23 views

how to use interpolating functions to smoothly paint a polygon? [duplicate]

consider 4 different colors on the nodes (with different parameter values) how to interpolate when the color values are given on the nodes using the constructed interpolation functions to paint the ...
1
vote
0answers
24 views

Why does dragging a point with a Tooltip interfere with MousePosition[“Graphics”]?

Consider the following toy example of EventHandler used to implement dragging a point around in a Graphics: ...
3
votes
1answer
44 views

color interpolation using interpolating functions on a quadrilateral

How can I use the interpolating functions I constructed for the four nodes of a quadrilateral to use as parameters to smoothly paint the edges of the quadrilateral when 4 different color values are ...
1
vote
1answer
44 views

Using Mouseover to change colour of the FilledCurve

I would like to change colour of the FilledCurve and display little table when mouse pointer goes over the area between curves. My code is shown below ...
5
votes
2answers
83 views

Plot values of matrixplot as well as the matrixplot itself inside Manipulate [duplicate]

Given a MatrixPlot inside a Manipulate, say some $M(t)$ where $M_{ij}$ real for all entries, is there a way to show the values ...
0
votes
0answers
13 views

Polynomial interpolation using Wachspress construction to interpolate color on a quadrilaterial

My questions is how to use Rational Polynomial interpolants to paint the edges of a quadrilateral smoothly using 4 different colors. My tutor has taught this two-variable version of Pade expansion ...
2
votes
1answer
51 views

ColorData input arguments not clear

A question about ColorData input arguments. I want to color a point in a graph I have, but I don't want to use the built in colors (orange, green, blue etc) I saw someone coloring a point using ...
9
votes
1answer
294 views

Making an interactive visualization of the eigenvectors of two-dimensional matrices

I've recently stumbled upon this very nice interactive visualization of eigenvectors of two-dimensional matrices, and how powers $A^k$ act on various vectors. How can this sort of visualization be ...
2
votes
2answers
136 views

How do I define and plot a function involving random variable? [closed]

I am struggling to define and and plot the following function: $\qquad \sin(x) + 0.15\,u$ where u is a uniform random variable in the range [-1, 1]. How can I define such a function and then plot ...
1
vote
1answer
41 views

Error with VectorPlot [closed]

...
0
votes
0answers
15 views

How can I fix the ComplexBase9 to make the graph just focus on the blue&black parts?

I am researching on the cantor set in complex number, however, in the program "Complexbase9" even I put in 5 digits it still inaccuracy, so I hope I can improve it to let the new graph only has blue&...
1
vote
2answers
48 views

How to color the nodes of a quadrilateral polygon

say we have the list of points a = {{1, 1}, {2, 1}, {2, 2}, {1, 2}, {1, 1}},it is a simple square, how can we make color the nodes( in which that the nodes and the ...
0
votes
1answer
48 views

Getting a Dodecahedron Graph to work in Manipulate [closed]

Right now I am currently using a grid graph for a "shortest path model", but ideally, I would like the shortest path model to work on a pentakis dodecahedron or rhombic triacontahedron. I will say I ...
3
votes
2answers
187 views

How to get this Europe map using Mathematica?

I need to generate a Europe map with given lattitue limit and longitute limit as shown in the attached figure. I want the map to be more detailed and colorful (attractive). Furthermore, if I want to ...
5
votes
2answers
244 views

Unknown (Graphics) Pleasure

I want to make a program that produces images like this one What I have tried... ...
2
votes
1answer
39 views

Create a Manipulate with a control to select Circle or Disk

I need to create a Manipulate that shows a circle or disk with a control to select whether it is Circle or ...
0
votes
1answer
40 views

Adjusting figures in Grid?

First figure: ...
0
votes
0answers
33 views

Spherical plot of px orbital?

I am trying to plot $p_x= \sin \theta \cos \phi$ orbital of Hydrogen atom, but I am getting a sphere instead of expected dumbbell. ...
0
votes
1answer
43 views

Drawing several 2D vectors in one plot with labeled axes [duplicate]

I want to draw vectors just with one plot. Also, I want to label the axes. Can anybody show me how can I do it?
2
votes
0answers
76 views

How to draw such boxes in Netron?

How to draw a box like this: This was drawn by https://github.com/lutzroeder/netron My attempt: ...
1
vote
1answer
40 views

Plot contour of zeroes against trig function

Take two functions: func1=Cos[Pi*x]*Cos[Pi*y] func2=x Sin[Pi*x] I want to create a plot that shows a 2D contour map of ...
3
votes
1answer
46 views

How to add a line to a CandlestickChart

I seek to add a horizontal line to a CandlestickChart. This question is similar to this post Here's the code: ...
5
votes
1answer
60 views

Control plot details when expanding the figure by hand

Mathematica 11.3 So when I use PlotLabels -> "Expressions" and expand the plot by dragging the corner, the expression goes beyond the plot frame. MWE: ...
1
vote
1answer
32 views

Colour alternating concentric circles a different colour

This code gives me two sets of concentric circles with respective radii of 2n and 2n-1: ...
1
vote
1answer
76 views

Density plot for eigenvalues of a matrix

I am trying to make a density plot of $|min~[Im(v)]|$ (where $v$ are the eigenvalues of a matrix) as function of $\gamma$ (horizontal axis) and $T$(vertical), The code upto now is ...
3
votes
1answer
46 views

Drawing evenly spaced arrows and opaque sheet between curves?

I have a question about drawing arrows/sheets between curves. Suppose I have two 3-d parametric curves like shown below: ...
1
vote
1answer
52 views

Transition Between Two Plots

Say I have two data sets, data1 and data2 ...
7
votes
2answers
692 views

Simple Fractal square

I am working on a math question about infinite series, and one of the question images is below. Each new white square has an area that is 1/4 of the previous square. Always looking to learn elegant ...
5
votes
4answers
71 views

Non vector graphics display in a notebook

When I generate multiple scatter plots with a large number of points and display them as output, the notebook becomes very sluggish (I assume that this is because each plot has a huge number of points ...
0
votes
0answers
55 views

Jupiter as a Circular Mass Ring

I am trying to model the planet Jupiter as a uniform circular ring of matter and calculate the central force inside of it. This ring has the Sun as its center and defined by its linear mass density <...
2
votes
1answer
102 views

Constructing the following figure using mathematica

How do I construct the figure in the image using the formulae in Mathematica? I defined the following functions for the 4 cases. Can you also explain the significance of these in relation to the ...