11
$\begingroup$

I need to make a contour plot for publication, but even if I set ContourStyle->Black, the 'black' plots and the axes are very faint. When I export the figure in svg and open it in some image-processing software (inkscape), the colour shown for the selected plot is actually a 'gray' colour instead of 'black' in rgb scale.

enter image description here

As shown in the figure, it is obvious the dashed line is a lot darker than the gridlines and tick markers. How to make the Gridlines, the tick markers and everything appear darker (not thicker, I am happy with the current thickness)?

$\endgroup$
  • $\begingroup$ What if you save the graphics as a pdf? $\endgroup$ – anderstood Nov 5 '16 at 18:32
  • $\begingroup$ Does ContourStyle -> Directive[Black, Opacity[1]] help? $\endgroup$ – Rahul Nov 5 '16 at 18:40
  • $\begingroup$ Setting the Opacity and GrayLevel does help. Thanks. But that only applies to the contour lines and still I don't know how I can make the tick markers (2, pi, pi/2, etc) darker $\endgroup$ – Physicist Nov 5 '16 at 18:44
  • $\begingroup$ ..., FrameStyle -> Black] should drive frame components, including tick marks, to Black. $\endgroup$ – Marchi Nov 5 '16 at 20:03
  • $\begingroup$ yeah FrameStyle->Black does make it work. thanks! $\endgroup$ – Physicist Nov 6 '16 at 13:08
13
$\begingroup$

I'm not actually sure how to test your specific case, but this seems to work:

cp = ContourPlot[x^2 + y^2 == 2, {x, -2, 2}, {y, -2, 2}, 
 GridLines -> Automatic, GridLinesStyle -> Black, 
 PlotTheme -> "Monochrome"]

Mathematica graphics

List@InputForm@Cases[cp, _?ColorQ, Infinity]
(*
  {{GrayLevel[0], GrayLevel[0], GrayLevel[0], 
    GrayLevel[0], GrayLevel[0], GrayLevel[0]}]}
*)

Cases[cp, _Opacity, Infinity]
(*  {}  *)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.