Tag Info

New answers tagged

1

Here's a slightly different solution using intersection segments (you actually need pgfplots for this), and the tkz-euclide package for the angle. Since you mentioned shading, I applied some shading. I had to re-create some paths such as the arc A-B, since it was not "perfect". Basically the arc didn't actually reach the coordinate A: So I used the ...


3

There's nothing about your example that requires pgfplots. You only need tikz. Nevertheless I've kept your preamble. \documentclass[letterpaper,12pt]{exam} \usepackage{pgfplots} \begin{document} \begin{center} \begin{tikzpicture} \path (0,0) coordinate (O) (9.2106,4.228) coordinate (A) (9.2106,-4.228) coordinate ...


3

You just need to delimit the areas. For the first case it's easy, but the second one is trickier. In this case the whole semicircle is filled but previous clip command defines which area will be preserved and which one eliminated. Both fill has been drawn on the background layer, this way previously drawn lines appear on top. ...


6

Unwanted space at the right side The first issue is just a unwanted space by a line end: \centerline{% \begin{tikzpicture}...\end{tikzpicture} } Then the tikzpicture with width \paperwidth plus the space after \end{tikzpicture} is centered, leaving the half of the space at the right side of the paper. Solution: \centerline{% ...


5

You can use the idea behind the pgf-blur package (originated from the question Reuse of soft path in fading declaration? Transformation of fadings? ) that utilizes for smooth shadows : draw over and over with changing the color (or opacity as you wish) and shape size (or line width for paths). The step size can be changed to make it smoother. I cooked up a ...


3

As far as I know, you cannot shade a path the way you have it in your question. You could use a path to clip a shaded shape beneath it, but it wouldn't achieve your result because it's curved and the shading follows the curve. However, you can blur the line elsewhere and include it as an external image. If it's your only instance of such a graphic, then ...


3

You can use fillbetween library to fill the area. To make one of the curves curved, I have used smooth option. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usepgfplotslibrary{fillbetween} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel=Strike Price (K), ylabel={Put Value (p)} ] \addplot ...



Top 50 recent answers are included