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
3
votes
2answers
97 views

Combining two plots with different x-axes and not labeling the x-axis

Below two figures are just for example. What should I do if I want to plot the two figures below on the same plot with the same y-axis only that the x-axis is also same but not labeled such that. As ...
-3
votes
2answers
173 views

How would I go about creating a tear drop shape of cubes in mathematica? [closed]

I am just practicing making some new designs with Mathematica and I thought of this recently. I want to make a tear drop shape (doesn't matter the orientation) constructed of mini cubes. I am ...
1
vote
2answers
23 views

Graph of the linear fit with the experimental points of different colors and numbered

I would like to graph the following points and their respective line of fit on the same graph, but I would like to know if it is possible that the points are colored with different colors just as in ...
0
votes
1answer
91 views

Adopt Mathematica codes for circumscribed and inscribed ellipsoids to related sets

Users Daniel Huber and Dominic have provided an interesting answer each to the question JohnEllipsoids of constructing circumscribing and inscribing ellipsoids for a certain three-dimensional convex ...
7
votes
0answers
88 views

Why 99.998474% instead of 100%?

I want to export a red square to the SVG file Export["red_square.svg", Graphics[{Red, RegularPolygon[4]}]] I noticed that in the exported SVG file, the ...
7
votes
2answers
169 views

Exporting image and scale

Let us say I have a plot, for example that one: Plot[x^2,{x,0,5},AspectRatio->5] and I would like to export it as a PDF in such a way that if I print the PDF ...
6
votes
2answers
123 views

BarChart - Maintain ChartElementFunction when changing PlotRange

Here is a BarChart of some data ...
1
vote
6answers
258 views

Graph/Construct (John) ellipsoids circumscribing and inscribing a certain 3D convex set

A famous theorem JohnEllipsoids of Fritz John informs us that associated with a convex body are circumscribed and inscribed ellipsoids of minimal and maximal volumes. Now, a body--argued to be convex ...
5
votes
6answers
453 views

Representation a matrix as a colored square shape

I am sure that I have accidentaly seen before a way to construct a square shape corresponding to a matrix. For example if we have a 5*5 matrix: ...
7
votes
3answers
362 views

How can I put the edge of a rectangle inside it rather than outside it?

Problem: when I draw a rectangle and put a coloured edge around it, the displayed edge is centred along the nominal edge and if it follows the same course as one of the axes then it does not show up. ...
0
votes
0answers
28 views

Parametric plot gives good graph for x variable range 0 - 10000 but fails to plot for 1 — 10000

Please explain why pF4 provides a good graph while pF4a, pF4b give nothing ... All I do is change the range of variable x from 0-10000 to 1-10000 ...
1
vote
1answer
49 views

How can I make this background white and stop it being “light red” as some kind of default? [closed]

This Graphics[Square, Background -> Yellow] yields what it should do, namely: But when I try to change the background to white, by going ...
0
votes
1answer
60 views

Evaluate analytic solution of the function [closed]

Here, i have plotted a function and i would like to print the y coordinate values from the plot for the x-coordinate given below. Coordinates in the sequence that every fourth y-coordinate should be ...
3
votes
3answers
147 views

Assign a color to VectorPlot

I want to set all the lines in a VectorPlot a specific color, like Red. I am using some of the new options for VectorPlot as my code below illustrates. Using VectorColorFunction -> Red does not ...
18
votes
3answers
4k views

Transfer graphics from Mathematica to Word without loss of quality

I want some high-quality 2D graphics produced by Mathematica in my paper. My step-by-step operation as follows: First I make the plot, for example, ...
0
votes
2answers
57 views

Finding the Roots of a Function [closed]

I have a system of differential equations, for x [t], y [t] and z [t], I solve the system in a simple way. However from these solutions I have a function like this: ...
1
vote
1answer
56 views

Why does mathematica not display the graph?

I want to substitute the solution of a differential equation into a function, and plot the function. My code is as attached: ...
0
votes
3answers
61 views

AbsoluteOptions not working with PlotPoints?

AbsoluteOptions does not work well with PlotPoints, for example: ...
4
votes
2answers
180 views

How to create a modified line plot?

I am looking for help to create a Line Plot that looks something like the image below. The NumberLinePlot function works well if you have a sets of distinct values, but this plot would create stacks ...
17
votes
4answers
918 views

Neural network illustrations

(Since this post was met with a certain reluctance to be given answers, a version of it is also posted in Community.) Please share neural networks diagrams you have made in Mathematica / WL. Here is ...
6
votes
2answers
286 views

Generate an ε-machine graph from transition probability matrices

I am trying to generate this type of graphic: see Fig.1a from https://arxiv.org/abs/0905.3587. This process is associated with two transition matrices $$ T^{(0)} = \begin{pmatrix} 0&p&0\\ 1&...
10
votes
3answers
348 views

Why is there a discrepancy between JoinedCurve/FilledCurve and the underlying BSplineCurve segments?

This may be related to How to discretize a BezierCurve?, but this question deals with BSplineCurves with specific SplineWeights, ...
8
votes
2answers
619 views

Minkowski sum with 2D and 3D geometries

I have searched for this but the only questions I've found are this, and a more closely related one. How can I compute and plot the Minkowski sum of geometric entities in both 2D and 3D? There are ...
1
vote
3answers
121 views

Plotting Minkowski product of two sets in complex 2D plane

I am trying to draw Minkowski product of two sets in complex 2D plane in Mathematica. While I can draw the individual complex 2d plane for these sets in Mathematica ...
0
votes
1answer
61 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 ...
23
votes
2answers
4k views

How do I map a Mollweide projection onto a sphere?

I have this Mollweide projection of the Earth circa 600 million years ago (https://drive.google.com/file/d/0B-zMzkcijSB9c0FJOVVtRWFSR2s/view).(1) I want to map this onto a sphere. My results have ...
5
votes
3answers
319 views

Stacked time series plot

I have multiple time series measured in different units. I want to have a stacked plot of my data with a common x-axis. An example would be here. For illustration, here is my data. ...
3
votes
3answers
128 views

How to make such good detailed plot with color bars?

The paper consists a no of plots which have color bars as axis but I think all of them followed the same procedure, I want to plot such good looking plots (like fig 1 or 2 or any)can anybody guide me ...
16
votes
2answers
824 views

Plotting an additional axis with ticks

When preparing non-standard graphs, it is common that one needs an "extra" axis, parallel but displaced from a traditional axis. This might happen in many cases: When you want to plot two curves ...
0
votes
0answers
20 views

Plot Graphics Copy/Paste Error

During copying/pasting of the Graphics output from ListLinePlot and ListPlot, I regularly but inconsistently have a pasted image that has issue with the image bounding. For example, This occurs with ...
0
votes
1answer
25 views

multivariate Gaussian distribution with identity covariance

I want to draw Geometry (or contours) for multivariate Gaussian distribution with identity covariance matrix (or draw decision boundary). How this is possible via Wolfram's online at Here? Please ...
2
votes
2answers
67 views

Overlay Graph3D with Graphics, with aligned coordinates

I have a Graph3D object representing a 3D lattice path ...
2
votes
1answer
95 views

How to move point to front of an axis

I'm trying to create an animation of derivative. My problem is very simple: a point is hidden behind the x-axis. This is my code: ...
57
votes
3answers
8k views

How to make the digits of π go around in a spiral like this?

Here is a start. MapIndexed[Text[Reverse[First[RealDigits[Pi,10,252]]][[Tr@#2]],#]&, Table[{t Cos[t],t Sin[t]},{t,0,16Pi,0.2}]]//Graphics
14
votes
3answers
2k views

How can I reproduce this mandala with Mathematica?

I found this image on the Internet and it is very beautiful. How can I reproduce it? The ideal would be to be able to control the colors of the outside as well as the center.
4
votes
1answer
398 views

Adding FrameLabels but without showing a Frame using GraphicsRow

I'm trying to create a set of plots that share similar axes (axes in the general sense, I'm actually using Frame). I'd like to have the text describing the axes plotted to the left of the first plot ...
5
votes
1answer
109 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. ...
0
votes
1answer
90 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[...
10
votes
2answers
256 views

How can I plot my financial indicator below a trading chart (produced by TradingChart) with the same x-axis?

Since this question was not answered, I would like to ask again with some additional information. I have a trading chart saved as chart1 as follows. ...
1
vote
1answer
83 views

Lévy C curve fractal from a substitution systems in NKS book p.190?

How can I make the geometrical transformation described in the page 190 in the New Kind of Science book by Stephen Wolfram to produce the fractal pattern? https://www.wolframscience.com/nks/p190--...
7
votes
2answers
332 views

How can I extract the edge points from an image?

I want to extract the edge points from a text image and use ListPlot[points] to visualize those points: I tried to used ...
5
votes
4answers
327 views

Speed up the intersection of the diagonals of a regular polygon

I need to calculate all the intersection points of the diagonals of a regular polygon, following code is really slow, when n=15, it take about 30sec. I also tried using ...
0
votes
0answers
43 views

Intersection Region of two Conic Hull

I have the following semi-infinite conic hull, r1=ConicHullRegion[{{0,0,0}},{{-1,0,0},{0,-1,0},{1,0,1}}]; r2=ConicHullRegion[{{0,0,0}},{{-1,0,0},{0,-1,0},{0,1,1}}]; ...
6
votes
2answers
169 views

Converting a 2d surface into a 3d volume

I have a 2d surface shown in the image below using ListPlot3D[]: It is generated with one line of code: ...
2
votes
0answers
35 views

Extract original vertex from VoronoiMesh

Consider a set of random coordinates. pts = SortBy[RandomReal[{-1, 1}, {25, 2}], {First, Last}]; and find it's VoronoiMesh, <...
6
votes
2answers
76 views

Converting a RawBoxes object to a workable expression

I have manged to turn an image into a RawBoxes expression. How do I turn in back into something I can use in Graphics? In ...
2
votes
2answers
63 views

Converting a translated filled curve into a region

How do I convert a translated filled curve into a region? It works without translation: ...

1
2 3 4 5
76