Message Boards Message Boards

0
|
3955 Views
|
8 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Why a small triangle appears in a plot when I use Rasterize function?

Posted 10 years ago

Hi everyone! I am using the latest version of Mathematica, ie, 10.3.1. I want to save a plot with its legends and I am using Rasterize for that but when i am using it there appears a small triangle at the bottom left of the plot. Why is that happening? I am sharing the commands I am using

Rasterize[
 Show[RegionPlot[
   Evaluate@
    ComplexExpand[{Im[z] < Im[(5 + 4 I) Cos[30]], 
       Im[z] > Im[(5 + 4 I) Cos[2*60 - 30]], Im[z] < Im[5 + 4 I]} /. 
      z -> x + I y], {x, -10, 10}, {y, -10, 10}, Axes -> True, 
   AxesLabel -> {HoldForm[Re[\[Zeta]]], HoldForm[Im[\[Zeta]]]}, 
   PlotLegends -> {k Cos[\[Theta]], k Cos[2 \[Alpha] - \[Theta]], k}, 
   PlotLabel -> 
    HoldForm[
     Common Strip of Analyticity of Fourier Transform of \[Phi]]]]]
POSTED BY: Gaurav Maurya
8 Replies

Thank you David

POSTED BY: Gaurav Maurya
Posted 10 years ago

Assigning the plot to a variable (like p1) and then using Export["someName.png",p1] should work for exporting as a png, since it is part of the core functionality. I suspect there is the same select and save-as capability, but I don't know how that would be accessed in another front end.

POSTED BY: David Keith

Does it work only in Windows? Actually, I am using Linux, Ubuntu, specifically.

POSTED BY: Gaurav Maurya

I am a beginner, don't know many things. But I used Placed instead of Rasterize and it worked for me. $VersionNumber gives me 10.3.

POSTED BY: Gaurav Maurya
Posted 10 years ago

In Windows,you can save the entire graphic, including the legend, by selecting the cell (click on the cell bar at the very right), then right-clicking to get a menu, and then using Save Graphic As. This works even without rasterizing. You can also Export the graphic and get the same result. Just assign it to a symbol when making the plot and use Export.

POSTED BY: David Keith

enter image description here

POSTED BY: Gaurav Maurya

Could you post $Version here? Have you tried increasing the plotpoints and do a fresh kernel start?

POSTED BY: Sander Huisman

Can't reproduce any triangle. Can you share your rasterized image?

POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract