## pyx-user — PyX user

You can subscribe to this list here.

2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 Jan (1) Feb (2) Mar (6) Apr (11) May Jun (2) Jul Aug (1) Sep (15) Oct (12) Nov (11) Dec (18) Jan (57) Feb (16) Mar (3) Apr (14) May (35) Jun (41) Jul (19) Aug (25) Sep (14) Oct (36) Nov (41) Dec (29) Jan (44) Feb (21) Mar (17) Apr (45) May (23) Jun (26) Jul (30) Aug (9) Sep (120) Oct (34) Nov (17) Dec (6) Jan (23) Feb (56) Mar (78) Apr (14) May (87) Jun (52) Jul (69) Aug (41) Sep (53) Oct (37) Nov (8) Dec (17) Jan (32) Feb (3) Mar (21) Apr (29) May (14) Jun (9) Jul (30) Aug (26) Sep (6) Oct (9) Nov (7) Dec (6) Jan (9) Feb (19) Mar (46) Apr (44) May (28) Jun (32) Jul (37) Aug (14) Sep (7) Oct (3) Nov (15) Dec (3) Jan Feb (6) Mar (7) Apr May (20) Jun (8) Jul (5) Aug (6) Sep Oct (45) Nov (8) Dec (20) Jan (3) Feb (1) Mar (12) Apr May (3) Jun (12) Jul (1) Aug (2) Sep (3) Oct (11) Nov (5) Dec (6) Jan (4) Feb Mar Apr (13) May (9) Jun (12) Jul (12) Aug (2) Sep (11) Oct (8) Nov (2) Dec (16) Jan (23) Feb Mar Apr (2) May Jun Jul Aug Sep (6) Oct (7) Nov Dec (3) Jan (1) Feb Mar Apr (2) May (7) Jun (6) Jul (2) Aug (12) Sep Oct (3) Nov Dec (3) Jan Feb Mar Apr (2) May Jun Jul Aug Sep Oct Nov (3) Dec Jan Feb (5) Mar (5) Apr (1) May (7) Jun (28) Jul (9) Aug Sep Oct (2) Nov (1) Dec
S M T W T F S

1

2

3

4
(2)
5

6

7

8

9

10

11

12

13

14

15

16

17

18

19
(1)
20
(4)
21
(5)
22

23

24

25

26
(1)
27

28

29

30

Showing 4 results of 4

 Re: [PyX-user] Minkowski spacetime diagrams in PyX From: André Wobst - 2011-04-20 20:37:35 Attachments: smime.p7s ```Hi Brendon, thanks for sharing your solution. Am 19.04.2011 um 20:03 schrieb Brendon Higgins: > One thing that I am a bit stumped on is how I would have this system draw the > axes of an alternative frame that is moving at some velocity relative to the > one in which the events are drawn (the "local" frame). The axes for such a > frame "squeeze" together, i.e. the x and t axes rotate in opposite directions. > I'm not sure how to approach that. One idea I had was to extend the function > of minkowski to draw these axes manually, but even that has me unsure of how > to proceed. Any suggestions? Are you aware that you can draw axes along arbitrary paths? This could be helpful here. However, you will need to setup those axes yourself, as the graph cannot help you in that. Best, André -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wobsta@..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ ```
 Re: [PyX-user] Minkowski spacetime diagrams in PyX From: Brendon Higgins - 2011-04-20 20:27:33 Attachments: Message as HTML ```Hi André, You wrote (April 20, 2011): > Am 19.04.2011 um 20:03 schrieb Brendon Higgins: > > One thing that I am a bit stumped on is how I would have this system draw > > the axes of an alternative frame that is moving at some velocity > > relative to the one in which the events are drawn (the "local" frame). > > The axes for such a frame "squeeze" together, i.e. the x and t axes > > rotate in opposite directions. I'm not sure how to approach that. One > > idea I had was to extend the function of minkowski to draw these axes > > manually, but even that has me unsure of how to proceed. Any > > suggestions? > > Are you aware that you can draw axes along arbitrary paths? This could be > helpful here. However, you will need to setup those axes yourself, as the > graph cannot help you in that. I saw the examples and was aware this was possible, but I wasn't sure how it could be integrated with the graph. Since you're telling me that that basically can't be done, that's useful information. Maybe I could implement the doaxes method in minkowski, and there draw them manually. (Or I may just never get around to it at all; it's a low priority.) I have encountered a different problem that I'm having trouble pinning down, though. When I set manual ticks (to remove those at the origin, for example) I get a ZeroDivisionErro in the rater. It seems that there is no weight. What I struggle to understand is why it works fine for ordinary PyX graphs, but not my minkowski class. Any ideas what might cause this, or where I should look? Peace, Brendon ```
 Re: [PyX-user] Spectrum figure under PyX? From: Brendon Higgins - 2011-04-20 14:35:16 ```Hi Wolfgang, Wolfgang Engelmann wrote (April 20, 2011): > I am quite ignorant of PyX, but wonder whether it would be possible to > create with it a figure like the attached one. I tried pst-spectra in > PSTricks, but have difficulties with the main part of the image (I can > manage the axes). I had a similar problem a while ago. My solution was to generate a bitmap (see the pyx.bitmap module documentation) from the normalised data, and then draw a graph on the same canvas on top of that, to get the labelled axes. (I also generated a key aside it using the same method.) These are the steps I took: 1. Read the data using graph.data.file or your preferred method. 2. Normalise and map the data into a bitmap string. Then convert that string to an image with bitmap.image 3. Create the graph object g, and do g.dolayout() 4. Create a bitmap.bitmap from the image with extents given by g.vpos(0, 0) and g.vpos(1, 1) 5. Insert the bitmap, then the graph, onto a canvas, and write to file. It wasn't as elegant or as automated as perhaps it could have been, but it worked for me. Peace, Brendon ```
 [PyX-user] Spectrum figure under PyX? From: Wolfgang Engelmann - 2011-04-20 08:03:19 Attachments: P007.jpg ```Hallo, I am quite ignorant of PyX, but wonder whether it would be possible to create with it a figure like the attached one. I tried pst-spectra in PSTricks, but have difficulties with the main part of the image (I can manage the axes). Wolfgang ```

Showing 4 results of 4