![graphing in mathematica graphing in mathematica](http://i.stack.imgur.com/BAZKH.png)
You can suppress the calculation and plotting of contour lines by simply giving the option Contours->None. This means that two plotting functions are called (density and contour). There is also a version that takes a 2D list as the input potential: listGradientFieldPlot.īy default, these functions draw both a colored height function image and a set of contour lines. In my implementation, I combine three plots: a ContourPlot of the given function, a StreamPlot of the functions gradient field, and a rasterized DensityPlot of the gradient field strength (the magnitude of the gradient). gradientFieldPlot is inspired by a function of the same name that existed in earlier versions of Mathematica.listContourDensityPlot combines functionality of ListDensityPlot and ListContourPlot.contourDensityPlot combines functionality of DensityPlot and ContourPlot.rasterContourPlot and rasterListContourPlot replace ContourPlot and ListContourPlot.The following functions should be able to do the job. The hard part is to make sure that all the usual plotting options work correctly, and that the separate parts are registered (aligned) properly in the final superposition. The solution I'm describing here is to create the color image and line art of the plot separately, and superimpose them only after rasterizing the image portion. Rasterizing (i.e., bitmapping) a complete plot helps reduce the above problems, but the downside is that axes, frames and contours look pixelated.Creating animations from a list of density or contour plots can be very slow, but gets much faster if one creates bitmaps of the frames first.When your Mathematica notebook accumulates a large number of Density or ContourPlots, the notbook becomes less and less responsive to scrolling and other operations (even saving).
#GRAPHING IN MATHEMATICA PDF#
Slow rendering when embedding the exported graphics into PDF documents.
![graphing in mathematica graphing in mathematica](https://i.stack.imgur.com/MV4MW.jpg)
Large file size when exporting to vector formats.As the image shows, gaps between the polygons can show up when exporting to PDF or EPS.
![graphing in mathematica graphing in mathematica](https://i.stack.imgur.com/S7vQr.png)
Here is a (probably incomplete) list of negative consequences: Hidden in the color map of any height function in such plots is a polygonal mesh as shown on the right. This page is motivated by the discussion of Mathematica's ContourPlot shading here. Mathematica density and contour Plots with rasterized image representation