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
5
votes
2answers
139 views

Extract individual white parts of binarized image

Suppose we have an image, like so: and I managed to create its MorphologicalGraph by using ...
5
votes
1answer
30 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 ...
3
votes
1answer
269 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: ...
2
votes
1answer
89 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 ...
1
vote
0answers
17 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 ...
9
votes
0answers
103 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: ...
-2
votes
0answers
57 views

Mathematical particle collision problem

There are three types of particles in the container, A, B, and C. If two particles of the same type collide, it will become a B particle; if two particles of different types collide, it will become ...
0
votes
0answers
28 views

“Solve” command not giving the correct answer for plot of a potential function [closed]

I have this code with this function of a potential V ...
2
votes
2answers
87 views

3D Histogram from discrete data

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

Inconsistency in mathamathica's plot within the same graph [closed]

So,I plot the graph in the 1st image, using the following code: Plot[(4 x^4 + 6 x^2 - 16 x)/(4 x^4), {x, -10, 10}] I get the graph below: But it doesn't show ...
3
votes
2answers
44 views

Evaluation of Graphics3D transforms

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, ...
4
votes
5answers
423 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 ...
1
vote
0answers
41 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 ...
6
votes
3answers
199 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 ...
0
votes
1answer
34 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 ...
0
votes
0answers
29 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 ...
2
votes
2answers
100 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 ...
4
votes
1answer
155 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 ...
1
vote
1answer
38 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, ...
0
votes
1answer
87 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: ...
1
vote
1answer
72 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) ...
6
votes
1answer
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 ...
1
vote
1answer
26 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 <...
5
votes
2answers
101 views

Finding intersection points of the Line command

Suppose I have two lists to which I apply the Line command for example A = {{-4,0},{4,0}} B = {{0,4},{0,-4}} and I take ...
1
vote
1answer
35 views

Unexpected data about function GraphDistanceMatrix

This is a weighted undirected graph generated from Excel table data. ...
5
votes
3answers
511 views

How do I plot a series of disks in the center of each hexagon?

I am trying to put a series of disks at the center of each hexagon, but I could center only 1. How do I center all of the disks at the center of each hexagon? Here is the code I am using. ...
2
votes
2answers
59 views

Add lines and text in a plot

If I have the following code: ...
2
votes
1answer
89 views

3D graphics render as though no illumination

As you can see from the image below, when I plot 3D surfaces, regions, etc, they render as though there was no light source (left is Mathematica's help documentation, right is how it renders for me): ...
1
vote
2answers
71 views

Programming a Colour Blend

Huge thanks to those who have helped me find my footing especially to @bRost03 who did the programming below. I hope you guys don't mind if I clarify one thing about the programming - I think I have ...
3
votes
2answers
276 views

How to draw a parenthesis-like shape?

Can't quite figure out how to draw the shape below with Lines and make them play nice at the vertices where they meet. I currently have three lines of different thicknesses, but it's clearly not ...
1
vote
0answers
24 views

Combination of Left alignment and Rotate messes up Automatic PlotRange

In the following code, left-aligning the inset AND rotating it seems to completely mess up the Automatic PlotRange. Is this intended behavior? If it's a bug, is there a workaround? 12.1.0.0 on MacOS ...
4
votes
0answers
35 views

Why FilledCurve and BezierCurve or BSplineCurve do not fit

I want to draw the outline of a circle (it's actually the glyph period from Cascadia Code font): ...
3
votes
2answers
63 views

How to replicate graphic output of GraphData with Graphplot?

I am trying trying to represent a Sierpinski sieve using GraphPlot. The plot I want to get is the standard representation of a Sierpinski triangle, which is the output generated by Mathematica ...
7
votes
1answer
182 views

3D Ternary Plot - Triangular Prism?

I'm new to Mathematica and I am using it as a free trial online. I am doing a biology experiment, varying the composition of people's diet and seeing the effect of that on sleep. Because I am varying ...
1
vote
1answer
35 views

Rewrite ListPlot using Graphics while perserving point color?

I have a lot of data points, and I have noticed that plotting using Graphics is usually much quicker than plotting with ListPlot. The problem is I am trying to color the data points based off some ...
5
votes
1answer
98 views

How to remove the cap of a sphere in and chose the side where it cuts

How can I remove the cap of a sphere in graphics ? Graphics3D[{Red, Sphere[{0, 0, 0}, 5]}, Axes -> True, PlotRange -> {{-10, 10}, {-10, 10}, {-10, 10}}] I'd ...
11
votes
4answers
567 views

Area/Volume of a 2D/3D object as it is filled up with water

How could I get the volume of water on a region as it is filled up with water from below? Assume gravity points in some appropriate downward axis like -y (or -z in 3D) so the water fills upward from ...
3
votes
1answer
80 views

My plot is so tiny (and buggy)

This is a very weird question, I'm plotting impedance and admitance using parametric curves This is my code ...
3
votes
1answer
44 views

Plots dashed when I don't specify them to be dashed?

I was plotting a function (F here) with selected values, and just wanted the plot to be solid lines with the selected colors specified with PlotStyle: ...
1
vote
1answer
77 views

How can I label these three circles as A, B, C?

I have this code (based on that of flinty in his/her answer to Can one employ Disk with symbolic arguments in equations--and, if not, how might the equations in question be formulated?) ...
4
votes
2answers
70 views

Placing labels “around” a GraphicsGrid

I have the following code, which produce the image shown. ...
0
votes
2answers
79 views

Can this 2D-Venn diagram code--involving Disk--be “upgraded” to a 3D one, involving Sphere?

At https://wolfram.com/language/12/improved-visualization-labeling/venn-diagram.html?product=mathematica one finds the code ...
0
votes
1answer
74 views

Create a Venn and/or related diagrams given the eight atoms of a three-set (A,B,C) 256-dimensional Boolean algebra

In my recent answer to How can one expand an arbitrary boolean combination into the $2^n$ atoms of the associated boolean algebra of size $2^{2^n}$?, for the eight atoms {G[0],G[1],G[2],G[3],G[4],G[...
4
votes
0answers
35 views

GeoListPlot - How can I create edges between points on a GeoGraphic object by clicking on them?

I'm attempting to use Mathematica to manually create a graph from a set of GPS coordinates (vertices). This graph will define the paths an autonomous rover will travel along. Here's what I have so far ...
6
votes
2answers
89 views

BarChart3D with continuous data along one dimension

I'm trying to find an option for BarChart3D (or some other 3D plotting function) which will allow me to visualize a set of data which should be continuous (i.e. interpolated) along one dimension, but ...
6
votes
2answers
137 views

Raytracing using Regions & NSolve

I want to use geometric shapes in Mathematica to build complex shapes and use my raytracing algorithm on it. I have a working example where we can get the intersections from a combination of a ...
0
votes
0answers
26 views

Problem with opacity in 3D plot [duplicate]

I'm trying to plot surfaces with PLot3D but when I set the opacity below 1, I can't see the surfaces anymore. So I tried with the examples from the documentation (Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -...
2
votes
3answers
73 views

writing numbers inside a plot using epilog

I need to write infidelity number $\bar{F}=6.82\times 10^{-6}$ inside a plot. I tried using Epilog with TeXForm but could not succeed. It prints $\frac{1}{10^6}$ instead of $10^{-6}$. Any help? Thanks....
3
votes
2answers
79 views

How to labels for each point in a list of arbitrary length?

I am attempting to illustrate a mapping from an isoparametric space to a parent (x-y) space for a variety of finite element types. Here we consider the simplest case of a three noded triangular ...
4
votes
1answer
92 views

How can I use Lighting for specific surface of a 3D object?

Graphics3D[{Cylinder[{{(-0.1 + 10.128)/2, (13 + 1.3)/2, 0}, {(-0.1 + 10.128)/2, (13 + 1.3)/2, 0.001}}, 3.2]}, Lighting -> {{"Spot", Red}}] I would like ...

1
2 3 4 5
73