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
28 views

How to plot a series of arrows from a list of vectors?

Suppose I had a list of 3-vectors as a time series like the following: ...
2
votes
1answer
51 views

Make a 3d plot of 2d “slices”

I have two 2D plots which came from taking slices of a 3D data set of the form (x,y,z,intensity). I manually "sliced" the data set to get the slices I wanted from two planes of interest and plotted ...
15
votes
3answers
1k views

How to make this Dragon Curve?

I made it by another software, and met some problems to change it into MMA code. ...
1
vote
0answers
24 views

Addint surface features to ellipsoid to visualize rotation

I am currently plotting an ellispoid using the following code ...
8
votes
2answers
84 views

Independent RoundingRadius specifications for all corners

I need help creating a Rectangle (or Framed) where the roundness of each corner is specified separately. For example, I would ...
0
votes
0answers
36 views

Interpolation,graph

I need to make a program in which for a function f(x) = e× ×(2x-7) / ( 3x2-4x+11) and values { 0,1,2,3,4,5,6} finds cubic spline interpolaric function for the corresponding values amd draw a graph for ...
1
vote
1answer
57 views

Mathematica image won't display

I need some help getting RegionPlot to display. Running this code: ...
1
vote
0answers
31 views

Difference between AspectRatios

Consider the following mesh given by ...
1
vote
1answer
38 views

How to change color of DistanceTransform image?

I want to overlay a set of points onto a distance transform of them. But I don't really like the black default color of the distance transform. Is there a way to change this? Given the points ...
4
votes
1answer
64 views

MaTeX shadow option?

When I create my graphics, I find that the tex objects created with MaTeX either clash with other objects (such as a coordinate grid) or, if I add a background, erase too much. Is there another option ...
8
votes
1answer
521 views

LocatorPane and multiple EventHandlers, PassEventsDown option

Consider the following piece of code from Heike as an ( accepted ) answer on LocatorPane, selecting multiple Locators - Basically the code implements dragging polygons on a LocatorPane. ...
11
votes
2answers
515 views

A Smooth and Round Voronoi Mesh

I want the edges of a VoronoiMesh to be smooth and round. I have found the following code from this answer ...
12
votes
3answers
581 views

Generate better looking correlation table

I have this code: ...
15
votes
3answers
656 views

How to compute the boundary of a group of ellipse efficiently?

Update1 I discovered that the bountary of a series of ellipses consists of the following three parts Part (I): the first ellipse's effective black-segment; Part (II): the effective envelope-...
1
vote
0answers
45 views

Reversing x-axis scale in ListPlot3D

I am trying to reverse the x-axis using ScalingFunctions but it's not working. I have a 3D plot with x, y and z scale in increasing order, but I want the x-axis to ...
0
votes
0answers
27 views

Why does using `Plot3D` with `RealAbs` cause a white space at kink but using `Abs` doesn't?

Consider the following plot: Plot3D[RealAbs[(x-5)+y],{x,4.999,5.001},{y,0,0.001}] The above plot has a white space where the derivative has a discontinuous jump (...
2
votes
0answers
29 views

can I plot a manipulable 3d graphic?

I am a petroleum engineer, I want to plot a wellpath in a 3D graphic if possible, I have the following data: Measured Depth, Inclination, and Azimuth. Can I plot a 3D fully manipulable graphic on ...
66
votes
3answers
6k views

An efficient circular arc primitive for Graphics3D

As many people have noted, the 2D graphics primitive Circle doesn't work in a Graphics3D environment (even in v10.0-v10.4, where ...
0
votes
0answers
43 views

Problem with animation

I am trying to animate an elastic collision and i don't how to code to describe the motion after the impact. Here's a piece of code: ...
0
votes
1answer
27 views

How can I plot function density plot Hyper-geometric /Bessel function with complex arguments?

I am interested in the plot of a function in terms of hypergeometric and Bessel function with complex arguments, Here, it is my code, but the result is incorrect, the solution must be defined every ...
4
votes
1answer
45 views

Image artifacts while using BSplineCurve

Mathematica provides an example of visualizing a Hilbert curve using splines as a Graphics object in this entry in its documentation system. However, when one attempts to change the thickness, some ...
4
votes
1answer
227 views

Exporting Dynamic@Graphic with Mathematica and Player Pro

Why does ...
45
votes
1answer
16k views

How can I draw a Homer with epicycloids? [duplicate]

You may have seen this video: https://www.youtube.com/watch?v=QVuU2YCwHjw. How does this work, and how to do it with Mathematica?
4
votes
1answer
34 views

Rotate Ticks in a Histogram

I have a histogram like the one presented here by @kglr (Combine BarChart and TimeLinePlot). For the sake of brevity, I excluded the issue with timelineplot: <...
0
votes
1answer
54 views

Denominator contribution in a 3D Plot

In an earlier post I asked for a 3D plot of Plot3D[Sqrt[((x^2 + y^2)/((x*y) + 1))], {x, -20, 20}, {y, -20, 20}] along with it's integer roots and in turn plot of ...
0
votes
0answers
45 views

Workaround for Opacity + Magnify bug in version 12?

Is there a workaround for the following bug in version 12.0.0. This is in MacOSX. ...
1
vote
2answers
53 views

How to add colors and legends to plots with “Show” [duplicate]

I have lets say three plots A, B, C. I know that in order to plot them on top of each other I can use Show function and it will show them all together, Is there a ...
10
votes
2answers
660 views

How to draw a Pythagoras tree like this

I want to draw a Pythagoras tree like the one below: But I can only do this now, and still can't do random colors. ...
1
vote
2answers
318 views

Label point on plot with image instead of text [closed]

I can use this code to label my points with text. ...
0
votes
0answers
40 views

How to use MMA to make these triangles into a Pentagon according to the equal length side?

I tried to use Polygon but failed. ...
3
votes
1answer
128 views

Mathematica's Graphics imperfections (deficiency)

The following Graphics behavior is annoying. Plotting several identical lines over each other makes the line thicker and thicker. But the correct behavior should be - the line should stay same no ...
4
votes
1answer
51 views

Relation between matrices

Maybe this is not a usual question for this forum... I have the following two matrices, mat1 and mat2, respectively: ...
1
vote
1answer
65 views

How can I plot the “sol” in the following?

I'm trying to plot the following differential equation for different values of P but no succes: ...
0
votes
1answer
45 views

Control line thickness in 2D graphics in terms of original coordinates

I would like to create a 2D graphics with lines, connecting points at integer coordinates and control the line's thickness expressed in the original coordinate system. E.g. ...
4
votes
2answers
77 views

TableView: How to change column headings?

I am not even sure whether it is possible. I would like to change column headings of TableView output to letters such as A, B, C etc instead of 1,2,3. Here is an example: ...
5
votes
0answers
97 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 ...
6
votes
3answers
1k views

How to create a Disk with smoothly changing coloring?

I want to have a disk. But this disk shouldn't have a fixed color; instead, I'd like it's color to fade smoothly. Until now, I came up with two ideas how to achieve this. Idea #1: ...
1
vote
1answer
40 views

How can I give different colors to each ListLinePlot combined with Show[]

I tried to assign different colors for each ListLinePlot combined with Show, but none of the things I tried with ...
2
votes
2answers
162 views

Network with Radial Gradient Fill Nodes

I would like to put a radial gradient effect on the nodes of a network. As far as I can tell Mathematica does not support radial gradient fill effects for graphics primitives. One way to get the ...
3
votes
1answer
55 views

How to draw graph consists of nodes with half edges attached to them?

I want to draw a graph with some nodes and some half edges attached to them. Basically something like number a) in the following picture Of course I can just draw each node and each half-edge one by ...
5
votes
2answers
380 views

Mathematica 12 default graphic opacity is 0, i.e. invisible

Bug introduced in 12.0 I just upgraded to Mathematica 12 and am trying to draw a line in a graphic and am finding that the default opacity for a new notebook is 0, making them invisible. I can ...
4
votes
2answers
438 views

generating randomly oriented non-intersecting cylinders

I could not find anything relevant with "googling" (only this) I can create a set of randomly oriented cylinders (code found here) ...
-1
votes
1answer
44 views

frame->False not working [closed]

Plot[x, {x, 0, 5}, Frame -> False, FrameTicks -> None, FrameStyle -> Directive[Red, Dotted]] I also tried FrameTicks none, and it doesn't seem to be ...
12
votes
2answers
191 views

Adding positional guides to multiple points in 3D plots?

I have a graph showing multiple points in 3D space and need to accurately be able to represent their position. I'm looking to add dropping points underneath similar to this example graphic: I could ...
1
vote
1answer
57 views

Showing all elements from a list

I have a list with graphics. Some of elements in the list are None type, how can I display all elements from that list on one picture? ...
2
votes
2answers
77 views

Gridlines for multiple plots when displayed by Show

Question Suppose that I am using Show to display several plots — for example, two plots and three contourplots. Is there a nice way to add gridlines? Elaboration ...
21
votes
2answers
893 views

Scaling edge thicknesses

UPDATE There may be some confusion as to the specification of the problem. kguler's answer doesn't really answer the question. I'll try to elaborate a bit at the bottom of the post. One problem with ...
5
votes
2answers
89 views

Extract Halfspace representation of a ConvexHullMesh

I have computed the convex hull of a set of points in $\mathbb{R}^{n}$ using ConvexHullMesh. This describes a convex polytope $\mathcal{P}$. I was wondering if there is any easy way of getting a ...
6
votes
5answers
187 views

Maximizing efficiency of a power-tower (tetration) calculation

I'm working on a power tower $\displaystyle z^{z^{.^{.^{.}}}}$ and wish to maximize the efficiency of my algorithm to compute a cycle map. This is a color-coded diagram of the cycle period of each ...
10
votes
1answer
485 views

PlotMarkers doesn't inherit PlotStyle when first argument to Graphics isn't a list

Bug fixed in 12.0 Could somebody explain, why Circle does not inherit the PlotStyle of the plot when used as ...

1 2 3 4 5 70