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

1
vote
1answer
252 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
173 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 ...
11
votes
5answers
998 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.
1
vote
2answers
118 views

I've some data points in Mathematica. I want to plot these in MATLAB. How to do that? [closed]

I want to export these data points into matlab and get a plot. Like I've to plot ft vs t. Through the following command- Table[{[Tau], ft[2, 5, [Tau]]}, {[Tau], 0, 15, .01}], i generated some data ...
3
votes
3answers
126 views

Text with subscript is automatically Italic

I am creating a figure for a document using Graphics in which there is Text with some variables and again those same variables ...
3
votes
3answers
196 views

Point-like function but with diamond instead of circle

I would like to use something like Point[x,y] to plot diamonds instead of small circles ("points"). I'm creating charts from scratch inside a ...
5
votes
1answer
69 views

Custom default ImageSize while allowing inheriting

When displaying graphics in the Mathematica front end, and leaving ImageSize at the default, the result will always keep its previous size. For example, ...
30
votes
4answers
697 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. ...
1
vote
1answer
231 views

Potential hill simulation

I attempted to simulate the motion of a particle approaching to a potential hill. The particle should experience a force of -1/r^2, if the equation for the ...
4
votes
1answer
255 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 ...
4
votes
2answers
185 views

Tracing a path on a polar coordinate grid

I attempt to trace the path of a point when shift-dragged on a polar coordinate as shown on the picture below. But I only managed to snap the point to the grid. Insight on how to accomplish this? Any ...
3
votes
3answers
191 views

How to combine a plot with an image

I have an external data file data which contains the position of stars of a galaxy simulations and it looks like this ...
3
votes
1answer
121 views

fragment loss with ContourPlot3D

I expect to have a chimney-look plot out of the function z = 1/(x^2 + y^2), but what I got is a broken one. Is there a way to get an intact plot from ...
3
votes
1answer
123 views

How to draw a normalized tangent arrow [closed]

I want to draw a normalized tangent arrow, so I use the Normalize command as follows: ...
-1
votes
1answer
67 views

graphics and manipulate stiffness method [closed]

I'm trying to create a structures analysis program based on the stiffness method. The program should analyse frames. All the program should be included in the manipulate function. What I want at first ...
3
votes
1answer
176 views

How to smoothly change the radius of a circle by dragging its circumference?

I am attempting to set an EventHandler to change the radius of a circle by dragging on its circumference. But the response to the dragging is terribly slow. What is ...
1
vote
2answers
115 views

How to draw a line (1D) with labeled subdivisions

I want to draw a simple line with some symbols, but so far have had no luck finding an easy way to do it in Mathematica. Does anyone know if Mathematica can easily implement e.g. the example below?
5
votes
2answers
260 views

How to draw a box with holes using Mathematica

How to draw these two(especially the second one) graphs using Mathematica? The curve is not important.The point is how to dig some holes in a cube. BTW, These two shapes are Homotopy.
3
votes
1answer
82 views

How to make PlotMarkers constructed from Graphics track plot style?

In this plot the Disk[] markers are not colored according to the style of the line to which they belong: ...
9
votes
3answers
415 views

Find intersection points with V10

My question departs from this one: Find intersection of pairs of straight lines but now I want to find the points with the new V10 Region-functions. ...
2
votes
1answer
108 views

ListPlot with conditions

I have a data file containing the position of about $10^5$ stars of a spiral galaxy. Here is the plot and this is the corresponding code ...
0
votes
1answer
80 views

Make a text with a transparent background in Graphics [closed]

Code first Graphics[{Thick, Yellow, Disk[{0, 1}], Text[Style["abcdeffsgg", 16, Black, Background -> Transparent], {0.85, 0.65}] }] Using ...
0
votes
1answer
56 views

Change the size of a graphic inside a legend [duplicate]

I have this graph: ...
3
votes
2answers
161 views

Exporting an overlay of two plots

I have a ListLinePlot and I'm trying to place a close-up of a specific range in the ListLinePlot. Using overlay I solved this problem with: ...
7
votes
1answer
123 views

One ChartLegend for multiple charts in Dataset?

Dataset's documentation shows how to leverage GroupBy operator at multiple levels ...
4
votes
2answers
303 views

Extrude 2D cross-section to 3D shape with shrinkfactor

I would like to create a 3D shape from extrusion and scaling of a 2D contour. The 2D contour that I have looks like this: and it consists of a bunch of points (here plotted with ...
1
vote
2answers
154 views

Line Breaks in AxesLabel or PlotLabel?

Searching got me peripherally related threads, but not exactly what I was looking for. I'm making some graphs which I want to use on exams. Sometimes, labels (specifically in AxesLabel and PlotLabel) ...
2
votes
1answer
229 views

GUI of a Karnaugh Map (2)

Adopting kguler's answer to my previous question, I managed to get the simplified map by using Mathematica's build-in function BooleanMinimize. The tough job left ...
2
votes
1answer
203 views

GUI of a Karnaugh Map

I intend to implement a three-variables Karnaugh map with the following code. There are two points I failed to figure out. How to remove the outer double-line border? How to change the toggling into ...
7
votes
1answer
218 views

How to generate nonperiodic tilings?

I need to generate nonperiodic tilings which are similar to the attached figure (kite-domino tiling). I was thinking the code is similar to the code for the Penrose tiling. However, that code is too ...
2
votes
1answer
117 views

How to set range of values on BarLegend and Manipulate Polygons color filling using BarLegend

I have a simple graphics which display a polygon and a bar legend. I am having difficulties defining a range of values for my bar legend. What I am looking to get is 4 values: 10^-10, 10^-6, 10^-3, ...
0
votes
0answers
139 views

Is it possible to simulate a RS latch?

Combining the solutions provided from the nice guys here to my previous two questions(first, second), Interesting enough, simulations for simple logic gates can be implemented easily. An example is ...
0
votes
1answer
48 views

LevelScheme for ListPlot Joined->False exceeds the size of the Panel

In two side by side panels, using LevelScheme, I output the same data using ListPlot. In the first panel I use option Joined->False, while in the second Joined->True. The data in the second panel is ...
1
vote
1answer
103 views

Plot Legends and Frame Ticks in Array Plots

Why do the frame ticks go away when PlotLegends->Automatic is inserted in an Array Plot? For instance, the following code produces an Array Plot with Frame Ticks. ...
3
votes
0answers
167 views

Anti-aliasing not working in Mathematica 10 and Linux

While this works fine in version 9, in version 10.0 the Antialiasing setting has no visible effect any more I'm here on Ubuntu 12.04 64-bit with Gnome 3.4.2 and an NVidia GeForce GTX 590 with ...
4
votes
0answers
141 views

Graphics3D flickers in Mathematica 10 and Linux

In the official Mathematica version 10.0, I get a very weird behavior when I try to rotate a 3d graphics The moment I click on the graphics to drag it, it seems like it zooms the whole graphics ...
1
vote
3answers
116 views

How to limit only two “0 and 1” strings for an xor implement?

I tried to implement some logic gates for a series of "0 & 1" strings, just like and, or, nand, nor and not listed below. How could I limit xor only accept a two strings list as its argument? ...
3
votes
1answer
74 views

Radius Values not Displaying in (List)PolarPlot

I'm having troubles with the PolarAxes option in ListPolarPlot under Mathematica 8.0. To be more specific, when I run the ...
2
votes
1answer
138 views

How to draw timing diagram from a 0 and 1 string list (2)

I like ubpdqn's last edition & Mr Wizard's refactoring to my last question very much. I inserted two Reverse just to make the diagrams and the strings match in ...
1
vote
1answer
157 views

Generating and plotting hypocycloids [closed]

Hypocycloids are curves generated by following a fixed point on a smaller circle rolling around the inside of a larger circle. The following code is from the recent book of P. Wellin (with modified ...
1
vote
0answers
67 views

Attempt to Run[“inkskape”] fails

I wrote a little script to convert various graphics files (.ps, .eps, .pdf) to the raster ones (.png). Export[out, Import[in], ImageSize -> size] fails for some ...
6
votes
2answers
158 views

“The function DiscretizeGraphics is not implemented for GraphicsComplex” confusion

Why does DiscretizeGraphics seems to work on one GraphicsComplex and not the other? Here is an example that works: ...
6
votes
0answers
70 views

GraphicsGrid Format Problem with SpanFromAbove

I believe this is a bug in GraphicsGrid. ...
3
votes
1answer
89 views

How does epilog position work in logplots?

I'm trying to use Epilog in my plots but the position of the Epilog isn't making much sense. As a minimal example consider, ...
3
votes
3answers
204 views

How to simultaneously change the color and thickness in ContourStyle?

When plotting contours with ContourPlot, one can use the option ContourStyle to change the contours of the plot. With the ...
5
votes
3answers
272 views

How to draw timing diagram from a 0 and 1 string list

What is the most elegant way to draw a timing diagram from a "0 and 1" string list? Here I started to draw the clock pulse diagram, and like to continue to draw the timing diagram for a given 0 and 1 ...
1
vote
3answers
102 views

Initial Image Size of dynamic plot

I have a dynamic plot. I want to set an initial image size and then be able to resize it by dragging with the mouse. When the image is updated, I want to maintain the "dragged" size. A naive attempt ...
3
votes
2answers
293 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, ...
6
votes
3answers
284 views

Labeling triangle edges in Mathematica 10

Mathematica 10 introduced lots of new geometry related functions, and one of these is SSSTriangle which creates a triangle graphic given the three side lengths. Is it possible however to label the ...
13
votes
1answer
224 views

Why does GridLines option fail with Function?

Bug introduced in 10.0.0 and fixed in 10.0.1 The Plot option GridLines can be specified either as a list of explicit values ...