So, I finally figured out how to add stuff to the gallery. Can't say
that I'm overly thrilled. For example, I see no way to control the
bounding box (no, struts don't count) or scale of the nbviewer output.
My local nbviewer as well as the hosted one give me svg for the cell
output so that I have to create the png preview for the gallery
manually. Oh well. Doing this directly on github (binder/nbviewer)
would be much easier. I guess my next project will be a mirror for the
examples and the gallery...

In any case, "parallel" can be considered to be an example which you
should grasp before wrapping your head around the "knot" example. I
guess the gallery is really meant as a showcase of things which PyX
can do; in the current state of PyX "development", it's maybe our only
way of adding examples.

BTW: If you run "parallel" yourself and try to enlarge the bounding
box you get the funny effect that bboxenlarge=0 and bboxenlarge=0.2
lead to the same clipping on the left (while the bbox is enlarged
vertically), only larger bboxenlarge values enlarge the box on the
left. I haven't found the root cause yet.


Am So., 7. Juli 2019 um 16:44 Uhr schrieb Michael J Gruber
<[email protected]>:
>
> http://pyx.sourceforge.net/examples/drawing2/parallel.html
>
> should give you a good example. You can tweak the construction of the
> parallel further (as indicated in the text), by specifying what to do
> with corners.
> Also, remember that you can decorate a path without stroking it
> ("draw" without stroke/fill), and that you deform a path and then work
> with the deformed path
> (http://pyx.sourceforge.net/manual/deformer.html#deformer.deformer.deform):
> In the example, the deformed path (which is stroked in blue) would be
>
> deformer.parallel(0.2).deform(p)
>
> which you use to build upon.
>
>
> Am Sa., 6. Juli 2019 um 17:17 Uhr schrieb S Joshua Swamidass
> <[email protected]>:
> >
> > Rather, it seem it should be possible with the deformer module perhaps? 
> > What would such code look like?
> >
> > On Sat, Jul 6, 2019 at 10:15 AM S Joshua Swamidass <[email protected]> 
> > wrote:
> >>
> >> Is there any easy way to make a curved path line that is 
> >> adjacent/non-overlapping metapost to another curved path? It seems this 
> >> should be possible with the deco somehow. Thank you.
> >>
> >>
> >>
> > _______________________________________________
> > PyX-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/pyx-user


_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to