Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smooth photon propagator #54

Open
zhyiyu opened this issue Apr 20, 2018 · 4 comments
Open

smooth photon propagator #54

zhyiyu opened this issue Apr 20, 2018 · 4 comments

Comments

@zhyiyu
Copy link

zhyiyu commented Apr 20, 2018

Hi, I really appreciate tikz-feynman package and your work. I would like to ask for an enhancement that, the photon propagator could be more smooth.

As I can see while it is magnified, the photon propagator is actually patched up with straight lines, which would be much more better if it is just the smooth sine function!

If there is anything I could do, please let know and I would really love to be able to help and make tikz-feynman better!

@Expander
Copy link

Hi @JP-Ellis and @zhyiyu ,

I see the same problem: The photon and boson propagators look pretty jagged.

I could imagine one could try to increase the number of samples, maybe somewhere around complete sines decoration style definition? I'm not an expert, but maybe one could try something along the lines:

      /tikz/decoration={
        complete sines,
        amplitude=1mm,
        segment length=2mm,
        samples=200 % <----- try to add this
      },

Best regards,
Alex

@zhyiyu
Copy link
Author

zhyiyu commented Mar 14, 2019

@Expander

Thank you for your reply! Can we manually increase sampling points while drawing the diagram?

@Expander
Copy link

Hi @zhyiyu ,

Can we manually increase sampling points while drawing the diagram?

Naively I had guessed that this should be possible. However, I had no luck so far. I've tried to add samples=500 to the various draw commands, but with no effect:

-- [boson, samples=500] --

Do you or @JP-Ellis have an idea?

@zhyiyu
Copy link
Author

zhyiyu commented Mar 14, 2019

@Expander

I could not find where the packages are installed on my mac, but I would consider modifying the .sty file.

@zhyiyu zhyiyu changed the title Photon Propagator Smoothing smoothening photon propagator Apr 10, 2019
@zhyiyu zhyiyu changed the title smoothening photon propagator smooth photon propagator Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants