We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I expect there to be separation between the segments because of the padX, but there is not.
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeFamilies #-} module Main where import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine ex :: Diagram Cairo ex = foldl1 (|||) $ map (padX 2) [l, r # lc red] where l = strokeP $ p2 (0, 0) ~~ p2 (1, 1) r = strokeP $ p2 (1, 1) ~~ p2 (2, 0) dia :: Diagram Cairo dia = (centerXY ex # pad 1.1) main = mainWith (dia # bg white)
The text was updated successfully, but these errors were encountered:
What version of diagrams-lib are you using?
diagrams-lib
Sorry, something went wrong.
I'm using HEAD.
l seems to work fine. But something funky is going on with the envelope of r:
l
r
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeFamilies #-} module Main where import Diagrams.Backend.Rasterific.CmdLine import Diagrams.Prelude ex2 :: Diagram Rasterific ex2 = hcat . map showEnvelope $ [r, padX 2 r] where r = strokeP $ p2 (1, 1) ~~ p2 (2, 0) dia :: Diagram Rasterific dia = (centerXY ex2 # pad 1.1) main = mainWith (dia # bg white)
@bacchanalia , incidentally, foldl1 (|||) should be equivalent to hcat.
foldl1 (|||)
hcat
No branches or pull requests
I expect there to be separation between the segments because of the padX, but there is not.
The text was updated successfully, but these errors were encountered: