From: Tristan Croll (tristan.croll_at_qut.edu.au)
Date: Sun Nov 08 2015 - 19:33:17 CST

Hi Nima,

You might be able to adapt this little proc I wrote to generate a set of 2D and 3D axes. Just change the labels and spacing to suit.

Cheers,

Tristan

proc draw_axes { args } {

    set 2Daxis [mol new]

    mol rename $2Daxis "2D axes"

    set 3Daxis [mol new]

    mol rename $3Daxis "3D axes"

    graphics $2Daxis color red
    graphics $2Daxis cylinder {-185 -185 0} {185 -185 0} radius 2 resolution 8
    for {set i -180} {$i <= 180} {incr i 30} {
        graphics $2Daxis cylinder "$i -185 0" "$i -180 0" radius 0.5 resolution 8
        graphics $2Daxis text "$i -200 0" "$i" size 0.7
    }
    graphics $2Daxis text {-10 -220 0} "Phi" size 2

    graphics $2Daxis cylinder {-185 -185 0} {-185 185 0} radius 2 resolution 8
    for {set i -180} {$i <= 180} {incr i 30} {
        graphics $2Daxis cylinder "-185 $i 0" "-180 $i 0" radius 0.5 resolution 8
        graphics $2Daxis text "-220 $i 0" "$i" size 0.7
    }
    graphics $2Daxis text {-260 0 0} "Psi" size 2

    graphics $3Daxis color red
    graphics $3Daxis cylinder {-185 -185 -185} {185 -185 -185} radius 2 resolution 8
    for {set i -180} {$i <= 180} {incr i 30} {
        graphics $3Daxis cylinder "$i -185 -185" "$i -180 -180" radius 0.5 resolution 8
        graphics $3Daxis text "$i -200 -200" "$i" size 0.7
    }
    graphics $3Daxis text {-10 -220 -210} "Phi" size 2

    graphics $3Daxis cylinder {-185 -185 -185} {-185 185 -185} radius 2 resolution 8
    for {set i -180} {$i <= 180} {incr i 30} {
        graphics $3Daxis cylinder "-185 $i -185" "-180 $i -180" radius 0.5 resolution 8
        graphics $3Daxis text "-220 $i -200" "$i" size 0.7
    }
    graphics $3Daxis text {-260 0 -210} "Psi" size 2

    graphics $3Daxis cylinder {-185 -185 -185} {-185 -185 185} radius 2 resolution 8
    for {set i -180} {$i <= 180} {incr i 30} {
    graphics $3Daxis cylinder "-185 -185 $i" "-180 -180 $i" radius 0.5 resolution 8
    graphics $3Daxis text "-200 -200 $i" "$i" size 0.7
    }
    graphics $3Daxis text {-250 -220 0} "Omega" size 2

    mol off $3Daxis
    mol off $2Daxis

}

________________________________
From: owner-vmd-l_at_ks.uiuc.edu <owner-vmd-l_at_ks.uiuc.edu> on behalf of Nima Soltani <nima.slt_at_gmail.com>
Sent: Monday, 9 November 2015 7:23 AM
To: vmd-l_at_ks.uiuc.edu
Subject: vmd-l: can I change the axes type to look like something like a graduated coordinate?

Hello everyone
I have some sort of 3-D data sorted in a pdb file, and I want Axes in the vmd to look like a graduated scaled coordinated that is analogous to Cartesian coordinates. Is this possible or not?
I know that this question may sounds easy but if answered, it would help me a lot, so thank in advance for any guidances

Best Regards,
Nima