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

learn more… | top users | synonyms

24
votes
2answers
775 views

Is there a way to have Plot draw points on a function where the function is undefined as circles as in textbooks?

A very common feature of graphs of functions used throughout textbooks are simple indications, such as open circles, of the points at which a function is undefined. Is there a way to do this in ...
12
votes
4answers
4k views

Graphics plot of point using unfilled circle

I'd like to be able to place points on a plot using Graphics[{Point[{a,b}],....}] but have the plot symbol be an unfilled circle. I've looked around but can't find ...
1
vote
2answers
83 views

How to plot any 7 point shape in 2D i.e. star [closed]

I am new to Mathematica and I was wondering if anyone knew how to just plot simple shapes with at least 7 points minimum in 2D. What are the required steps I would need to start this? I believe I have ...
1
vote
1answer
58 views

General method for extracting graphics primitives from a plot [closed]

I often have to plot experimental data that is very noisy, and sometimes I try a bit of image processing on it. For example (using a test function) I can gaussian filter it: ...
5
votes
2answers
929 views

Using ChemicalData to make molecule graphics

$\require{mhchem}$I would like to take the acetone $\cf{((CH3)2CO)}$ and chloroform $\cf{(HCCl_3)}$ molecules that Mathematica's chemical data provides, and plot them together. I want to show how ...
35
votes
2answers
2k 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.2, where ...
1
vote
1answer
184 views

Export Graphics using Move in Optica

I am modeling an eye and am using TurboPlot and DrawSystem. I would like to export the graph, but using the ...
2
votes
1answer
70 views

How to overplot Graphics on GeoGraphics? [duplicate]

I have a parametric plot and a GeoGraphic of the same size and I want to overplot them. Show doesn't seem to like to use both at the same time though it will display either. How can I put regular ...
16
votes
5answers
3k views

3D surface that looks like a virus

I have been recently using Mathematica for composing animations that are part of the supplementary information of my papers. I am currently trying to build an animation that involves a viral ...
2
votes
0answers
260 views

Generalize WASD Function First Person Viewing

How might I generalize the following WASD question such that it works with any Graphics3D object and includes q and ...
5
votes
3answers
163 views

Removing specific regions in post-processing of graphic

I'd like to create a graphic that looks like the following using RegionPlot with Mesh: I have three different plots and would ...
0
votes
0answers
35 views

Finding intersection of two infinitely long lines using points [duplicate]

EDITED In the Find intersection of pairs of straight lines problem, it is assumed that line are intersected by default and the purpose is to find the intersection points. In the present problem, two ...
7
votes
1answer
150 views

What should I call the messages that appear when the mouse moves over failed graphics output?

I attempted to evaluate the following Plot[x^2, {x, 1, 2}, PlotStyle -> {RGBColor[a]}] which, of course, failed. After the failure, putting my mouse over the ...
0
votes
0answers
13 views

Graph color to cylindir surface [duplicate]

l = 95 P = 300000 R = 15.8 h = 1.1 K = 2.9*10^10 a = 30.1 b = 1 c = Pi/6 d = 1/15.8 M[X_, [Phi]_] := (-((12*PR^4)/(Kh^3)))Sum[((4/(Pim))Sin[((mPi)/l)*a]Sin[((mPi)/l)b](4/(Pin)) ...
2
votes
1answer
111 views

Drawing lines automatically between two different plots

I try to create a special plot where several lines have to be generated automatically between two plots at very precise coordinate. My goal is to make something exactlly like But I want to do it for ...
22
votes
6answers
1k views

Understanding Pie Chart Annulus generation and alternate style using Disk[]

Background I have been working with a set of data for some time now and I recently decided to change the format. The data is a tree-styled listing of hierarchical names and positions. (* Names ...
3
votes
1answer
66 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 ...
7
votes
3answers
405 views

How to put an imported image in a Disk?

The image below contains various ( lightblue filled ) circles ( made with the Disk function ), I want to fill them with an external image ( for example of a face ) such that each circle contains the ...
0
votes
2answers
155 views

Random non-overlapping disks in a square

I've found a nice code snippet by @belisarius from this question, that I'll reproduce here for reference: ...
2
votes
1answer
53 views

Using Epilog to increase text size [closed]

I have a plot with labels positioned using the epilog function for convenience. I would like to increase the size of axes labels within the epilog function but I haven't managed to figure out a way to ...
3
votes
2answers
77 views

Manipulate a 2D point controlled simultaneously by Locator and its coordinates

I'm trying to have a point in the plane which can be manipulated both using Locator as well as inserting its $x$ and $y$ coordinates. My attempts at doing this are: ...
33
votes
1answer
1k views

How can all those tiny polygons generated by RegionPlot be joined into a single FilledCurve?

RegionPlot will usually generate a large number of tiny polygons for filling the region: ...
80
votes
6answers
7k views

Generating visually pleasing circle packs

EDIT: (my conclusion and thank you note) I want to thank you all guys for this unexpected intellectual and artistic journey. Hope you had fun and enjoyed it the same as I did. I would like to ...
2
votes
2answers
76 views

Aligning Density an Contour Graphics

In radiation therapy, we display radiation dose as an isodose contour plot overlain on density plot describing the patient geometry (CT data). Here is a simple example (the material grid is voxelated ...
8
votes
0answers
106 views

Wrapping text around pasted graphic

I would like to use Mathematica to create all my documents for my high school math class. I cannot, however, find a way to copy and paste a diagram (let's say from Geogebra) and then place it where I ...
3
votes
2answers
149 views

Positioning axes labels

I need to change the position of my axes labels such that the y-axis label is in the middle and parallel to the y-axis. I'd also like the x-axis label to be in the middle of the x-axis rather than ...
2
votes
1answer
170 views

Using codes to replicate drawing tools in Mathematica

This might seem very obvious but I'm on the verge of losing all the annotations I've made on a graph because I can't figure a way to save it after using the drawing tool to add a few extras to the ...
7
votes
1answer
201 views

Plotting iterated function system images

I'm new not only to this forum, but to Mathematica in general, evidently. I'm running into an issue, and my best attempts at Googling solutions (and trying the search box for this forum) came up with ...
7
votes
2answers
2k views

Formatting Ticks and FrameTicks labels with a function

Is there a convenient way to format tick labels? In this example I would like to use the default Mathematica tick intervals, but simply convert the X axis labels to strings with "s" added. As you ...
0
votes
1answer
41 views

EdgeForm with Graphics

I want my figure to have an edge and I am playing around with EdgeForm[Thick], putting it in different places. My figure is: ...
3
votes
0answers
61 views

Simple ways to implement vector dilation

Suppose we have a singly connected but not necessarily convex polygon. Something like shape = CountryData["Chad", "Coordinates"]. Is there a simple way to ...
0
votes
1answer
44 views

How can I move the x-axis label beneath (instead of at the end of) the x-axis?

I borrowed this code from a Wolfram demo. I looked at several answers to the general question of how to move the x-axis label from the end of the x-axis to beneath it (use ...
2
votes
1answer
115 views

Help me export high-resolution TIFF figure

I have generated a figure in MMA by ContourPlot3D. How can I export this figure in high-resolution TIFF format(say, 1200 dpi for lines, 300 dpi for halftone and ...
6
votes
3answers
396 views

How to disable differential styles/markers/etc. for multiple entities?

For functions that can produce multiple "style-able" entities, Mathematica by default will give each such entity a different style. Similar conventions apply to other features, either by default, or ...
5
votes
2answers
168 views

How to export images in EPS format that can be opened in CorelDraw

I am preparing a paper. The journal requirements are odd: only eps files for pictures are accepted. All pictures I have drawn in Mathematica and exported in eps format in the usual way: ...
4
votes
2answers
83 views

How to scale multiple graphics to preserve relative sizes?

I'm looking for a simple way to make the displays of different Graphics expressions accurately reflect their relative sizes. (By "simple" I mean that it does not ...
3
votes
1answer
75 views

How to get the size of a specific image in the front end?

The title pretty much says it all. One possible point of confusion is that this question is not limited to items with head Image. I don't know what is the ...
4
votes
3answers
219 views

Drawing a ladder graph with Line and Table/Array

I want to programmatically draw a ladder graph like the one below: I'd like to use Table to dynamically add steps. My (lame) attempt so far: ...
13
votes
1answer
135 views

How to retrieve current FaceForm?

The current colour in a Graphics object can be retrieved using CurrentValue["Color"] for use in Dynamic stuff. Example: ...
8
votes
3answers
195 views

How to solve for the intersection points of two ellipses?

I have a parametric equation of two ellipses as follow $\begin{cases} x=a_1 \text{sin$\theta $}+b_1 \text{cos$\theta $}+c_1 \\ y=d_1 \text{sin$\theta $}+e_1 \text{cos$\theta $}+f_1 \\ ...
0
votes
1answer
65 views

Plot some ordered pairs on the Cartesian plane? [closed]

Can Mathematica show me a coordinate grid ( x-y plane) with some ordered pairs plotted on the plane? Or even better, some complex numbers represented as vectors on the real-imaginary plane.
1
vote
1answer
45 views

How to save all images in GraphicsGrid?

I have a 2X2 images. How to save all the images at once while using GraphicsGrid ? when I try the save graphic option only one image is saved
1
vote
1answer
126 views

How to make program for phase portrait?

I need to add a phase portrait to my program. The program is below, and I need to create a graph like the one in the picture. My step size needs to be 5, from x0,y0 = 10 to x0,y0 = 50. ...
4
votes
2answers
164 views

How to get rid of the background tiny crosses when using Graphics?

I am plotting very tiny arrows. For large arrows there is no problem but for small ones, one can see little crosses in the arrow positions. I do not want to see this crosses. I just want to see no ...
3
votes
1answer
227 views

ContourPlot is slow and unwieldy and generates a large-data graphic

I'm constructing a single contour showing the points in a plane that satisfy a function. The general form is ContourPlot[f[x, y] == 0, {x, 0, .5}, {y, 0.2, .5}] ...
0
votes
0answers
32 views

Color Gradient on points using ErrorListPlot

I am having some difficulties getting a value-dependent color gradient on points with ErrorListPlot. I am starting with a list looking like ...