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

2
votes
0answers
124 views
+50

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
283 views
+50

How do I plot the images of oriented curves under complex transformation?

I'm working on a complex transformation sketch that I'd like to create via mathematica. I'm working with the function $$w=z^2\tag{0},$$ where its real and imaginary parts are $u=x^2-y^2$ and $v=2xy$, ...
5
votes
1answer
213 views

Strange opacity behavior

I edited my question and included the code: here I make the general definitions for the parametric plots I have to do later (these are simply the definitions of the x and y coordinates of the points ...
3
votes
4answers
110 views

drawing core-shell structure [duplicate]

I am pretty new in Mathematica drawing. I am trying to draw a core-shell structure, it means a core sphere with a shell sphere, like this It can be in 2D or preferentially in 3D. Does someone can ...
2
votes
2answers
103 views

How to specify units for ImageSize Option? [duplicate]

I'm trying out making a CDF and I want it to print within the margins of Letter paper. There is an ImageSize option that I would like to set; some plots will be in ...
8
votes
2answers
234 views

How can I only draw outer common tangent to two circles?

I have code worked for drawing common tangent lines to two circles(http://en.wikipedia.org/wiki/Tangent_lines_to_circles), now I want to delete the inner common tangent lines, how? ...
2
votes
1answer
59 views

ListContourPlot is blank

This is probably very simple. I want to do a simple ListContourPlot. ...
5
votes
7answers
686 views

What is the equation to plot a vertical line?

Please help. Trying to find area between three curves, e^-x, x = 2, y = 1. Can't find out how to plot x = 2. Don't want to use ...
5
votes
3answers
167 views

Accurately distort graphics

I would like to accurately distort this plot of $\sin(x^{1/2})$ (and others like it) so that the wavelengths are evened out (ie - "inverse-square root" it). I should like to do the same to "de-log" ...
1
vote
1answer
221 views

How to make a stereogram in Mathematica? (2)

Given a tiled background and a depth map, both of the same dimension, I tried to produce a stereogram using the following codes which was adopted from the method given by Simon Woods, but in a ...
7
votes
2answers
187 views

Attaching a legend to BallAndStick picture

I am looking for a way to add a legend showing the identity of various atoms (with different colours) to this picture. Any Clues? ...
3
votes
2answers
186 views

How to obtain the GIF by Mathematica?

Is it possible to create such GIF illustration amination by Mathematica? and the rendering effects of each trigonometric function curve. UPDATE I have mainly two puzzles: 1) how to obtain the ...
3
votes
1answer
121 views

Comparing data sets with fade transitions (Code speed-up)

I am using the utility below for data comparison. However, with my real (more complex) charts the processing is quite slow, so setting the Pause time under ...
4
votes
1answer
61 views

WindowSize error message when saving Graphics object as PNG

When I try to save a Graphics object using the menu File ▶ Save Selection As... or via right click and Save Graphic As... the Messages window pops up with the ...
2
votes
3answers
92 views

Force change in aspect ratio of Inset image

I have an image that I want to place in the background of a plot and stretch it to cover the entire plot area. However, the aspect ratio of the image does not match the aspect ratio of the plot, and ...
2
votes
0answers
41 views

How can I export graph as PDF with metadata such as Title and Author fields

I want to export figure from Mathematica in PDF format. Also I want to include Author and Title fields into the PDF. For example, to include Author field, I use the following code: ...
3
votes
1answer
212 views

Plots in version 10.0 look washed out compared to previous versions

Recently installed the new version but I can't get the graphics to look the way I want them to. If I run this code Plot[x^2, {x, -5, 5}, PlotStyle -> Thick] ...
16
votes
4answers
331 views

How do you turn off the Dashed graphics directive? [duplicate]

I'm looking at Graphics Directives but can't figure out a way to turn off the Dashed graphics directive. For example, given ...
8
votes
1answer
131 views

Show graphics content in front of frame

Consider some graphics which spill over the plot range, like these: ...
7
votes
3answers
289 views

Show only the outlines of graphic primitives

I want to go from Graphics[{Red, Rectangle[{0, 0}, {1, 3}], Blue, Polygon[{{1, 1}, {3, 1}, {2, 2}}]}, Frame -> True] to I have rather clumsily written: ...
2
votes
2answers
103 views

How can I visualize an array of very small vectors spaced on very large grid? [duplicate]

I have data in the form points = {{1, 1, 1}, {1, 1, 2}, ...} vectors = {{2, 2, 5}, {2, 1, 7}, ...} Can somebody help to edit this data so I can ListVectorPlot a ...
0
votes
0answers
29 views

How to set axes scale for Plot? [closed]

Well, maybe its a dumb question, but I can't find how to set axes scale factor for my Plot. For example, if I have x and y axes, I want to have 1 unit on the x ...
0
votes
0answers
36 views

Graph embedding and edge weights [duplicate]

Does functions like GraphPlot take in to account edge weights in case of springelectrical embedding? In case of spring electrical embedding I expect the vertices connected by heavy edges to be pulled ...
2
votes
1answer
80 views

ContourPlot is slow and unwieldy and generates a large-data graphic [closed]

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}] ...
3
votes
1answer
92 views

How to combine objects from different .obj files?

I got a screw .obj model with the head diameter of 2cm, and a board .obj model of 10cmx10cmx4cm in dimension. I would like the ...
2
votes
1answer
93 views

Undocumented overload for Graph?

I stumbled (here, in the expression for the block diagram) upon a version of Graph that I don't see in the documentation over here. That documentation admits three overloads (the following are in my ...
10
votes
2answers
214 views

How to round tick line ends in the plots

I would like to have rounded ticks in my Mathematica plots. They look much better for thick frames ...
5
votes
0answers
69 views

How to draw block diagrams as Graph objects?

In the documentation ClosedLoopResponsesWithAPIDController, There is a very nice block diagram. I want to create my own block diagrams similar to this. I clicked on the diagram and pressed ...
8
votes
0answers
161 views

How to export .mtl files for 3D textured objects

I would really like to deploy my textured 3D graphics in the web with sketchfab in my blog. Unfortunately, Mathematica only exports the shape of the 3d graphics, i.e. the .obj file, but omits the ...
0
votes
6answers
170 views

How to build a game board [duplicate]

I have - rather lazily - constructed a chessboard like this: ...
9
votes
2answers
312 views

Dimensions of the results of Text[] within Graphics[]

Is there a way to get the dimensions that the results of a Text[] will occupy within a Graphics[]? Specifically, if I run ...
7
votes
6answers
718 views

How to make a resizable chess board?

For some reason I need to create a chess board. I can create a chess board by following command: ...
0
votes
1answer
66 views

Manipulate Parametric Plot [closed]

Is it possible to plot the values of x and y in Mathematica? ...
2
votes
1answer
138 views

How to use MathPSfrag package in Mathematica 10?

I am interested to use LaTeX like labels in the plots that I prepare in Mathematica, and hence, I downloaded the MathPSfrag package from this website ...
13
votes
1answer
715 views

How to create a neon light effect in Mathematica?

I tried to use Glow to create a neon light effect on a torus object. The result shown on the left of the picture below looks quite different from the real one on ...
5
votes
2answers
238 views

How to create an adjustable Bézier curve?

I tried to create an adjustable Bézier curve with the following simple code. However the curve didn't show up. What is the problem? Please help. ...
4
votes
2answers
146 views

VectorPlot differences between v9 and v10

The following code displays differently with v9 & v10: ...
6
votes
2answers
214 views

How to create a stacked-alphabet image efficiently?

By adopting the answers from Mr. Wizard to my previous question, I tried to create a stacked-alphabet image from a person's portrait, the alphabets were taken from the name of the portrait subject. ...
7
votes
1answer
287 views

Color ramp banding in PDFKit when exporting Raster image Inset to PDF

Here I produce a Raster image with large uniformly colored rectangles and put it in an Inset: ...
7
votes
5answers
322 views

What is my problem with MeshFunction?

I want plot the max value in a sine plot. We can use the following code ...
3
votes
2answers
144 views

Selectively updating individual graphics in a dynamic, multiple-plot Show

Suppose Show contains multiple graphics objects that differ markedly in the amount of computation needed for their display. Hence, when dynamically updating only ...
2
votes
1answer
382 views

How to create these famous surfaces in topology with the desired color effects?

It was said such real objects of famous topological surfaces were plotted by the cooperation between mathematician Richard Palais and artist Luc Benard, and published as the cover page of Science ...
7
votes
2answers
163 views

Dynamically transform one Graphics to another

I would like to have two Graphics objects displayed side by side such that: they are mirror images of each other if I change the left-hand one interactively using ...
8
votes
0answers
43 views

Proper EdgeForm setting so boundary appears entirely within shape

I have two neighboring (complicated) polygons that I want to be displayed with thick boundaries, however the two shapes border one another, and as EdgeForm places the line centered upon the polygon's ...
3
votes
1answer
92 views

How to combine Plot and GeoGraphics?

I want to combine this map as "background" of this combined plot. How can I do it? The documentation doesn't show any similar demonstration. ...
6
votes
3answers
813 views

How to get the mean color of an artwork?

I got a piece of artwork in dimension of 20x20 pixels. I attempted to divide it into a 5x5 array of elements each of a smaller size of 4x4 pixels, and would like to find the mean color of the ...
7
votes
3answers
164 views

Change appearance of ConvexHullMesh

I'm struggling to understand the behaviour of ConvexHullMesh (or rather the non-behaviour). I have a polynom p ...
6
votes
2answers
191 views

How to get rid of the blank areas around alphabetical images?

I attempt to test the mean graylevels of the alphabets "W" and "Z". I used the following code to create the images of them. ...
28
votes
4answers
612 views

How to make a stereogram in Mathematica?

Given a background and a pattern jpg files, is there a quick and easy way to produce a stereogram by using Mathematica? The following picture was produced from Photoshop, spent about half an hour. ...
11
votes
5answers
867 views

How to make a depth map from a 3D model?

Given a 3D .obj model, for example a rabbit. How can we make a depth map out of it? Any idea or help would be much appreciated.